-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change go to symbol in workspace shortcut to Include ALT #234243
base: main
Are you sure you want to change the base?
change go to symbol in workspace shortcut to Include ALT #234243
Conversation
@TylerLeonhardt could you please check this? Also, I tried to see if there are any existing tests that might be breaking, but I found that there are none. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the intention of this change but this PR would change it for all platforms, e.g also desktop is not wanted.
The way to tackle this is to have another keybinding that is guarded with a isWebContext
context key
Additionally, the proposal in this PR would have |
Is this implementation correct? Am I missing any edge cases? If so, could you please point out where I’m going wrong? |
You can use these script scripts: |
Thanks for the command ps : not working as expected, will update! |
@jrieken super({
id: Constants.SearchCommandIds.ShowAllSymbolsActionId,
title: {
...nls.localize2('showTriggerActions', "Go to Symbol in Workspace..."),
mnemonicTitle: nls.localize({ key: 'miGotoSymbolInWorkspace', comment: ['&& denotes a mnemonic'] }, "Go to Symbol in &&Workspace..."),
},
f1: true,
keybinding: [
{
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyCode.KeyT
},
{
weight: KeybindingWeight.WorkbenchContrib,
when: ContextKeyExpr.and(IsWebContext),
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyE,
}
],
menu: {
id: MenuId.MenubarGoMenu,
group: '3_global_nav',
order: 2
}
}); Ideally, the keybinding Ctrl + Alt + E should toggle the "Go to Symbol in Workspace" feature on the web, but it does not seem to work. (Referred PR : #184585) it also occurs in the native Windows app when assigning the keybinding Can you please help identify the issue or point out what might be going wrong? |
Try running |
Fixes : #232381
Included
Alt
(option) forGo to Symbol in Workspace