Observe the new createAutoImportProviderProgramDurationMs property added by TS 4.0
Adds this property to our completion telemetry
This commit is contained in:
parent
bc976f13e5
commit
4193455a6f
1 changed files with 2 additions and 0 deletions
|
@ -561,6 +561,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||||
"type" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
"type" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
||||||
"count" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
"count" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
||||||
"updateGraphDurationMs" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
"updateGraphDurationMs" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
||||||
|
"createAutoImportProviderProgramDurationMs" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
||||||
"includesPackageJsonImport" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
"includesPackageJsonImport" : { "classification": "SystemMetadata", "purpose": "FeatureInsight" },
|
||||||
"${include}": [
|
"${include}": [
|
||||||
"${TypeScriptCommonProperties}"
|
"${TypeScriptCommonProperties}"
|
||||||
|
@ -572,6 +573,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||||
type: response?.type ?? 'unknown',
|
type: response?.type ?? 'unknown',
|
||||||
count: response?.type === 'response' && response.body ? response.body.entries.length : 0,
|
count: response?.type === 'response' && response.body ? response.body.entries.length : 0,
|
||||||
updateGraphDurationMs: response?.type === 'response' ? response.performanceData?.updateGraphDurationMs : undefined,
|
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,
|
includesPackageJsonImport: includesPackageJsonImport ? 'true' : undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue