You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
telemetry for lightbulb and move to code actions (microsoft#211323)
* first pass on new telemetry
* change click condition to when there are 2 or fewer code actions, list out the code actions
* remove excessive calls
* cleanup
* also log the code action providers
* change owner to me
* change title to provider
Copy file name to clipboardExpand all lines: src/vs/editor/contrib/codeAction/browser/codeAction.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -273,7 +273,7 @@ export async function applyCodeAction(
273
273
codeActionKind: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'The kind (refactor, quickfix) of the applied code action'};
274
274
codeActionIsPreferred: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'Was the code action marked as being a preferred action?'};
275
275
reason: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'The kind of action used to trigger apply code action.'};
276
-
owner: 'mjbvz';
276
+
owner: 'justschen';
277
277
comment: 'Event used to gain insights into which code actions are being triggered';
// Telemetry for showing code actions from lightbulb. Shows us how often it was clicked.
112
+
typeShowCodeActionListEvent={
113
+
codeActionListLength: number;
114
+
codeActions: string[];
115
+
codeActionProviders: string[];
116
+
};
117
+
118
+
typeShowListEventClassification={
119
+
codeActionListLength: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'The length of the code action list from the lightbulb widget.'};
120
+
codeActions: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'The title of code actions in this menu.'};
121
+
codeActionProviders: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'The provider of code actions in this menu.'};
122
+
owner: 'justschen';
123
+
comment: 'Event used to gain insights into what code actions are being shown';
// Telemetry for showing code actions here. only log on `showLightbulb`. Logs when code action list is quit out.
316
+
if(options.fromLightbulb&&didCancel!==undefined){
317
+
typeShowCodeActionListEvent={
318
+
codeActionListLength: number;
319
+
didCancel: boolean;
320
+
};
321
+
322
+
typeShowListEventClassification={
323
+
codeActionListLength: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'The length of the code action list when quit out. Can be from any code action menu.'};
324
+
didCancel: {classification: 'SystemMetaData';purpose: 'FeatureInsight';comment: 'Whether the code action was cancelled or selected.'};
325
+
owner: 'justschen';
326
+
comment: 'Event used to gain insights into how many valid code actions are being shown';
0 commit comments