From be6ef592b007f7c4728ce481b8e32c7ad3d0588e Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Mon, 21 Nov 2022 13:47:28 -0500 Subject: [PATCH] prevents event for `ExecuteDocumentSymbolProvider` --- src/system/command.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/system/command.ts b/src/system/command.ts index e245ebb..fc5ab53 100644 --- a/src/system/command.ts +++ b/src/system/command.ts @@ -2,8 +2,8 @@ import type { Command as CoreCommand, Disposable, Uri } from 'vscode'; import { commands } from 'vscode'; import type { Action, ActionContext } from '../api/gitlens'; 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'; interface CommandConstructor { @@ -66,7 +66,9 @@ export function executeCoreCommand( command: CoreCommands, ...args: T ): Thenable { - Container.instance.telemetry.sendEvent('command/core', { command: command }); + if (command !== CoreCommands.ExecuteDocumentSymbolProvider) { + Container.instance.telemetry.sendEvent('command/core', { command: command }); + } return commands.executeCommand(command, ...args); }