Don't log internal command executions from ext host (#17482)

This commit is contained in:
Charles Gagnon
2021-10-25 10:53:09 -07:00
committed by GitHub
parent 94cb358eae
commit 7049890f24
2 changed files with 7 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export class SqlTelemetryContribution extends Disposable implements IWorkbenchCo
'selectNextSuggestion'].some(id => id === e.commandId) &&
// Events from src\vs\editor\contrib\wordOperations\wordOperations.ts
!e.commandId.startsWith('cursor') &&
!e.commandId.startsWith('_vscode_delegate')) {
!e.commandId.startsWith('_')) { // Commands starting with _ are internal commands which generally aren't useful to us currently
// Note - this event is duplicated in extHostCommands to also ensure logging of all commands contributed by extensions
telemetryService.sendActionEvent(TelemetryView.Shell, TelemetryAction.adsCommandExecuted, e.commandId);
}