diff --git a/extensions/typescript-language-features/src/languageFeatures/completions.ts b/extensions/typescript-language-features/src/languageFeatures/completions.ts index b9030df380b..df86687559f 100644 --- a/extensions/typescript-language-features/src/languageFeatures/completions.ts +++ b/extensions/typescript-language-features/src/languageFeatures/completions.ts @@ -818,6 +818,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider< "duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "type" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "count" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "flags": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "updateGraphDurationMs" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "createAutoImportProviderProgramDurationMs" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, "includesPackageJsonImport" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, @@ -830,6 +831,8 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider< this.telemetryReporter.logTelemetry('completions.execute', { duration: String(duration), type: response?.type ?? 'unknown', + // @ts-expect-error until 4.7 + flags: response?.type === 'response' && typeof response.body?.flags === 'number' ? String(response.body.flags) : undefined, count: String(response?.type === 'response' && response.body ? response.body.entries.length : 0), updateGraphDurationMs: response?.type === 'response' && typeof response.performanceData?.updateGraphDurationMs === 'number' ? String(response.performanceData.updateGraphDurationMs)