提交 4193455a 编写于 作者: M Matt Bierner

Observe the new createAutoImportProviderProgramDurationMs property added by TS 4.0

Adds this property to our completion telemetry
上级 bc976f13
......@@ -561,6 +561,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
"type" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
"count" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
"updateGraphDurationMs" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
"createAutoImportProviderProgramDurationMs" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
"includesPackageJsonImport" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
"${include}": [
"${TypeScriptCommonProperties}"
......@@ -572,6 +573,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
type: response?.type ?? 'unknown',
count: response?.type === 'response' && response.body ? response.body.entries.length : 0,
updateGraphDurationMs: response?.type === 'response' ? response.performanceData?.updateGraphDurationMs : undefined,
createAutoImportProviderProgramDurationMs: response?.type === 'response' ? (response.performanceData as Proto.PerformanceData & { createAutoImportProviderProgramDurationMs?: number })?.createAutoImportProviderProgramDurationMs : undefined,
includesPackageJsonImport: includesPackageJsonImport ? 'true' : undefined,
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册