You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'Peek Definition' missing from context menu #85218
We have done that on purpose in an effort to cleanup the context menu. All peek-commands are still there, e.g accessible via keybindings or via the command palette but we redesign the context menu like this... Two options that I see
Add another group to the context menu which contains peek commands, like Peek Definition, Peek Declaration, Peek Implementation, Peek References,
Toggle commands when holding alt, similar to editor title actions, e.g hold alt while the menu shows goto-commands would turn them into their alternative peek-commands
Personally, I'd prefer option 2 because it will keep the context menu small and gives all the power, however at the cost of being harder to discover.
[edit] screen capture of how this works on the Mac
How about grouping them all on a "Peek" submenu? That'd make them discoverable to folk who rely on right-click to find out what they can do on things (as opposed to reading the doc).
The order should now be the same... Anyways, we aren't sold on the sub menu approach yet. There are concerns about this being too noisy and therefore some questions why you have missed "Peek Definition".
Is that something you simply noticed?
Is that something you use (regular/rare) but only through the context menu and not via keybinding or F1?
Is this the only peek command that you are missing?
Activity
jrieken commentedon Nov 20, 2019
We have done that on purpose in an effort to cleanup the context menu. All peek-commands are still there, e.g accessible via keybindings or via the command palette but we redesign the context menu like this... Two options that I see
alt, similar to editor title actions, e.g hold alt while the menu shows goto-commands would turn them into their alternative peek-commandsPersonally, I'd prefer option 2 because it will keep the context menu small and gives all the power, however at the cost of being harder to discover.
[edit] screen capture of how this works on the Mac
jrieken commentedon Nov 20, 2019
For completeness - this has been mentioned before here: #83752 (comment)
gjsjohnmurray commentedon Nov 20, 2019
How about grouping them all on a "Peek" submenu? That'd make them discoverable to folk who rely on right-click to find out what they can do on things (as opposed to reading the doc).
gjsjohnmurray commentedon Nov 20, 2019
Maybe this case can get some activity underway on #9827 🙏
jrieken commentedon Nov 21, 2019
Yeah, it would require to implement sub menus. I'll do some exploring
jrieken commentedon Nov 21, 2019
I have pushed this to master
add "Peek" sub menu, #85218
gjsjohnmurray commentedon Nov 21, 2019
I like this. Just wondering why the sequence of "Peek" options differs from the sequence of "Go to" options.
fix ordering #85218
jrieken commentedon Nov 21, 2019
The order should now be the same... Anyways, we aren't sold on the sub menu approach yet. There are concerns about this being too noisy and therefore some questions why you have missed "Peek Definition".
jrieken commentedon Nov 22, 2019
We will stick with the sub context menu for now.