Skip to content

Commit 882a068

Browse files
authored
1 parent ff6113a commit 882a068

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/vs/editor/contrib/inlineCompletions/browser/ghostTextHoverParticipant.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import * as nls from 'vs/nls';
2020
import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility';
2121
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
2222
import { IOpenerService } from 'vs/platform/opener/common/opener';
23+
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
2324

2425
export class InlineCompletionsHover implements IHoverPart {
2526
constructor(
@@ -71,7 +72,8 @@ export class InlineCompletionsHoverParticipant implements IEditorHoverParticipan
7172
@ILanguageService private readonly _languageService: ILanguageService,
7273
@IOpenerService private readonly _openerService: IOpenerService,
7374
@IAccessibilityService private readonly accessibilityService: IAccessibilityService,
74-
@IInstantiationService private readonly _instantiationService: IInstantiationService
75+
@IInstantiationService private readonly _instantiationService: IInstantiationService,
76+
@ITelemetryService private readonly _telemetryService: ITelemetryService,
7577
) {
7678
}
7779

@@ -121,6 +123,11 @@ export class InlineCompletionsHoverParticipant implements IEditorHoverParticipan
121123
const disposableStore = new DisposableStore();
122124
const part = hoverParts[0];
123125

126+
this._telemetryService.publicLog2<{}, {
127+
owner: 'hediet';
128+
comment: 'This event tracks whenever an inline completion hover is shown.';
129+
}>('inlineCompletionHover.shown');
130+
124131
if (this.accessibilityService.isScreenReaderOptimized()) {
125132
this.renderScreenReaderText(context, part, disposableStore);
126133
}

src/vs/editor/contrib/inlineCompletions/browser/inlineSuggestionHintsWidget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export class InlineSuggestionHintsContentWidget extends Disposable implements IC
167167
actionViewItemProvider: (action, options) => {
168168
return action instanceof MenuItemAction ? instantiationService.createInstance(StatusBarViewItem, action, undefined) : undefined;
169169
},
170+
telemetrySource: 'InlineSuggestionToolbar',
170171
}));
171172

172173
this._register(this.toolBar.onDidChangeDropdownVisibility(e => {

0 commit comments

Comments
 (0)