Browse Source

Excludes logging certain core commands

main
Eric Amodio 1 year ago
parent
commit
0ca0a0fd16
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/system/command.ts

+ 6
- 1
src/system/command.ts View File

@ -93,7 +93,12 @@ export function executeCoreCommand(
command: CoreCommands,
...args: T
): Thenable<U> {
if (command != 'setContext' && command !== 'vscode.executeDocumentSymbolProvider') {
if (
command != 'setContext' &&
command !== 'vscode.executeDocumentSymbolProvider' &&
command !== 'vscode.diff' &&
command !== 'vscode.open'
) {
Container.instance.telemetry.sendEvent('command/core', { command: command });
}
return commands.executeCommand<U>(command, ...args);

Loading…
Cancel
Save