diff --git a/src/mode/modeHandler.ts b/src/mode/modeHandler.ts index b0019d607b1..6df31cada2e 100644 --- a/src/mode/modeHandler.ts +++ b/src/mode/modeHandler.ts @@ -496,9 +496,8 @@ export class ModeHandler implements vscode.Disposable { return; } - // e.kind can sometimes be undefined according to the docs for - // TextEditorSelectionChangeKind, so do not check for !e.kind - if (e.kind === vscode.TextEditorSelectionChangeKind.Command) { + // Only handle mouse selections + if (e.kind !== vscode.TextEditorSelectionChangeKind.Mouse) { return; }