Browse Source

prevents event for `ExecuteDocumentSymbolProvider`

main
Keith Daulton 2 years ago
parent
commit
be6ef592b0
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/system/command.ts

+ 5
- 3
src/system/command.ts View File

@ -2,8 +2,8 @@ import type { Command as CoreCommand, Disposable, Uri } from 'vscode';
import { commands } from 'vscode'; import { commands } from 'vscode';
import type { Action, ActionContext } from '../api/gitlens'; import type { Action, ActionContext } from '../api/gitlens';
import type { Command } from '../commands/base'; import type { Command } from '../commands/base';
import type { CoreCommands, CoreGitCommands } from '../constants';
import { Commands } from '../constants';
import type { CoreGitCommands } from '../constants';
import { Commands, CoreCommands } from '../constants';
import { Container } from '../container'; import { Container } from '../container';
interface CommandConstructor { interface CommandConstructor {
@ -66,7 +66,9 @@ export function executeCoreCommand(
command: CoreCommands, command: CoreCommands,
...args: T ...args: T
): Thenable<U> { ): Thenable<U> {
Container.instance.telemetry.sendEvent('command/core', { command: command });
if (command !== CoreCommands.ExecuteDocumentSymbolProvider) {
Container.instance.telemetry.sendEvent('command/core', { command: command });
}
return commands.executeCommand<U>(command, ...args); return commands.executeCommand<U>(command, ...args);
} }

Loading…
Cancel
Save