Skip to content

Commit b8f0cf3

Browse files
committed
add telemetry to measure how successful async additional edits can be applied
1 parent fb973b6 commit b8f0cf3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/vs/editor/contrib/suggest/browser/suggestController.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,18 @@ export class SuggestController implements IEditorContribution {
399399
return true;
400400
}).then(applied => {
401401
this._logService.trace('[suggest] async resolving of edits DONE (ms, applied?)', sw.elapsed(), applied);
402+
type AsyncSuggestEdits = { providerId: string; applied: boolean };
403+
type AsyncSuggestEditsClassification = {
404+
owner: 'jrieken';
405+
comment: 'Information about async additional text edits';
406+
providerId: { classification: 'PublicNonPersonalData'; purpose: 'FeatureInsight'; comment: 'Provider of the completions item' };
407+
applied: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; comment: 'If async additional text edits could be applied' };
408+
};
409+
this._telemetryService.publicLog2<AsyncSuggestEdits, AsyncSuggestEditsClassification>('suggest.asyncAdditionalEdits', {
410+
providerId: item.extensionId?.value ?? 'unknown',
411+
applied
412+
});
413+
}).finally(() => {
402414
docListener.dispose();
403415
typeListener.dispose();
404416
}));

0 commit comments

Comments
 (0)