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
We added a new contribution point called menus which allows extension writers to contribute to different (context) menus. Make sure that
you get proper intellisense and documentation when authoring package.json
you get proper validation when authoring package.json
you get warnings/errors when launching with a bogus menus-contributions
you get warnings when a menu item references a missing command
you can contribute an icon to commands in the commands section
an icon can be a path or a themable icon which is two values for the light or dark theme
you can contribute menu items to editor/title, editor/context, and explorer/context
a menu item can define a when condition under which it shows
the when is the same as the keybindings-when and can use the same keys
the when can use two new keys resourceScheme and resourceLangId which are available without an editor - think of the explorer context menu
the when can be a boolean configuration value, e.g config.editor.lineNumbers
menus update when keys change, e.g. editorHasSelection
a menu item can declare an alternative command which shows when pressing alt and hovering (not in context menus)
a menu item can define a group which is used to group and separate the item from others
there is a special group called navigation which means that the menu item is moved to the top of the context menus or in the title and not overflow area of editor actions
the group can be like navigation@10 where the @10 defines the sorting inside that group
the command is passed the URI of the selected resource - the file from the explorer or the document uri from the editor
The text was updated successfully, but these errors were encountered:
Tests #3192
We added a new contribution point called
menus
which allows extension writers to contribute to different (context) menus. Make sure thatpackage.json
package.json
commands
sectioneditor/title
,editor/context
, andexplorer/context
when
condition under which it showswhen
is the same as the keybindings-when and can use the same keyswhen
can use two new keysresourceScheme
andresourceLangId
which are available without an editor - think of the explorer context menuwhen
can be a boolean configuration value, e.gconfig.editor.lineNumbers
editorHasSelection
group
which is used to group and separate the item from othersnavigation
which means that the menu item is moved to the top of the context menus or in the title and not overflow area of editor actionsnavigation@10
where the@10
defines the sorting inside that groupThe text was updated successfully, but these errors were encountered: