Skip to content

Commit

Permalink
Reapply badclient commit
Browse files Browse the repository at this point in the history
Fixes #120781

Add second file this time
  • Loading branch information
mjbvz committed Apr 8, 2021
1 parent 3702538 commit 604b950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ export class TypeScriptServerError extends Error {
"TypeScriptRequestErrorProperties" : {
"command" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"serverid" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"sanitizedstack" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
"sanitizedstack" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"badclient" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
}
*/
return {
command: this.serverCommand,
serverid: this.serverId,
sanitizedstack: this.sanitizedStack || '',
badclient: /\bBADCLIENT\b/.test(this.stack || ''),
} as const;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface PackageInfo {
}

export interface TelemetryProperties {
readonly [prop: string]: string | number | undefined;
readonly [prop: string]: string | number | boolean | undefined;
}

export interface TelemetryReporter {
Expand Down

0 comments on commit 604b950

Please sign in to comment.