Skip to content

Commit be6ef59

Browse files
committed
prevents event for ExecuteDocumentSymbolProvider
1 parent 94cac8c commit be6ef59

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/system/command.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Command as CoreCommand, Disposable, Uri } from 'vscode';
22
import { commands } from 'vscode';
33
import type { Action, ActionContext } from '../api/gitlens';
44
import type { Command } from '../commands/base';
5-
import type { CoreCommands, CoreGitCommands } from '../constants';
6-
import { Commands } from '../constants';
5+
import type { CoreGitCommands } from '../constants';
6+
import { Commands, CoreCommands } from '../constants';
77
import { Container } from '../container';
88

99
interface CommandConstructor {
@@ -66,7 +66,9 @@ export function executeCoreCommand<T extends [...unknown[]] = [], U = any>(
6666
command: CoreCommands,
6767
...args: T
6868
): Thenable<U> {
69-
Container.instance.telemetry.sendEvent('command/core', { command: command });
69+
if (command !== CoreCommands.ExecuteDocumentSymbolProvider) {
70+
Container.instance.telemetry.sendEvent('command/core', { command: command });
71+
}
7072
return commands.executeCommand<U>(command, ...args);
7173
}
7274

0 commit comments

Comments
 (0)