Skip to content

Commit faeda52

Browse files
committed
Do not attach "jump back" command to context menu
1 parent c2f6eac commit faeda52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/jupyterlab-lsp/src/features/jump_to.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import jumpToSvg from '../../style/icons/jump-to.svg';
2727
import { URLExt } from '@jupyterlab/coreutils';
2828
import { CodeJump as LSPJumpSettings, ModifierKey } from '../_jump_to';
2929
import { ISettingRegistry } from '@jupyterlab/settingregistry';
30+
import { CommandEntryPoint } from '../command_manager';
3031

3132
export const jumpToIcon = new LabIcon({
3233
name: 'lsp:jump-to',
@@ -253,7 +254,9 @@ const COMMANDS: IFeatureCommand[] = [
253254
},
254255
is_enabled: ({ connection }) => connection.isDefinitionSupported(),
255256
label: 'Jump back',
256-
icon: jumpToIcon
257+
icon: jumpToIcon,
258+
// do not attach to any of the context menus
259+
attach_to: new Set<CommandEntryPoint>()
257260
}
258261
];
259262

0 commit comments

Comments
 (0)