Skip to content

Commit 3fb524d

Browse files
committed
rename: remove debug telemetry
1 parent 733b8aa commit 3fb524d

File tree

1 file changed

+2
-8
lines changed
  • src/vs/editor/contrib/rename/browser

1 file changed

+2
-8
lines changed

src/vs/editor/contrib/rename/browser/rename.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ class RenameController implements IEditorContribution {
247247
if (newSymbolNamesProviders.length > 0) { // @ulugbekna: we're interested only in telemetry for rename suggestions currently
248248
this._reportTelemetry(newSymbolNamesProviders.length, model.getLanguageId(), inputFieldResult);
249249
}
250-
// TODO@ulugbekna: remove before stable release
251-
this._reportTelemetry(newSymbolNamesProviders.length, model.getLanguageId(), inputFieldResult, 'inDebugMode');
252250

253251
// no result, only hint to focus the editor or not
254252
if (typeof inputFieldResult === 'boolean') {
@@ -336,7 +334,7 @@ class RenameController implements IEditorContribution {
336334
this._renameWidget.focusPreviousRenameSuggestion();
337335
}
338336

339-
private _reportTelemetry(nRenameSuggestionProviders: number, languageId: string, inputFieldResult: boolean | RenameWidgetResult, inDebugMode?: 'inDebugMode') {
337+
private _reportTelemetry(nRenameSuggestionProviders: number, languageId: string, inputFieldResult: boolean | RenameWidgetResult) {
340338
type RenameInvokedEvent =
341339
{
342340
kind: 'accepted' | 'cancelled';
@@ -385,11 +383,7 @@ class RenameController implements IEditorContribution {
385383
wantsPreview: inputFieldResult.wantsPreview,
386384
};
387385

388-
if (inDebugMode) {
389-
this._telemetryService.publicLog2<RenameInvokedEvent, RenameInvokedClassification>('renameInvokedEventDebug', value);
390-
} else {
391-
this._telemetryService.publicLog2<RenameInvokedEvent, RenameInvokedClassification>('renameInvokedEvent', value);
392-
}
386+
this._telemetryService.publicLog2<RenameInvokedEvent, RenameInvokedClassification>('renameInvokedEvent', value);
393387
}
394388
}
395389

0 commit comments

Comments
 (0)