-
Notifications
You must be signed in to change notification settings - Fork 2.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
VS Code menu contributions to "editor/title/run" seem to behave no different than to "editor/title" #12687
Comments
I'm happy to look into this. |
In VS Code, contributions to the "editor/title/run" menu contribution point are not added to the ellipsis menu but to a dedicated item on the toolbar. This commit makes Theia do the same, except that unlike VS Code, a pop-up menu is always presented, even if there is only one action available. Fixes eclipse-theia#12687 Signed-off-by: Christian W. Damus <[email protected]>
In VS Code, contributions to the "editor/title/run" menu contribution point are not added to the ellipsis menu but to a dedicated item on the toolbar. This commit makes Theia do the same, except that unlike VS Code, a pop-up menu is always presented, even if there is only one action available. Fixes eclipse-theia#12687 Contributed on behalf of STMicroelectronics. Signed-off-by: Christian W. Damus <[email protected]>
In VS Code, contributions to the "editor/title/run" menu contribution point are not added to the ellipsis menu but to a dedicated item on the toolbar. This commit makes Theia do the same, except that unlike VS Code, a pop-up menu is always presented, even if there is only one action available. Fixes eclipse-theia#12687 Contributed on behalf of STMicroelectronics. Signed-off-by: Christian W. Damus <[email protected]>
In VS Code, contributions to the "editor/title/run" menu contribution point are not added to the ellipsis menu but to a dedicated item on the toolbar. This commit makes Theia do the same, except that unlike VS Code, a pop-up menu is always presented, even if there is only one action available. Fixes eclipse-theia#12687 Signed-off-by: Christian W. Damus <[email protected]>
In VS Code, contributions to the "editor/title/run" menu contribution point are not added to the ellipsis menu but to a dedicated item on the toolbar. This commit makes Theia do the same, except that unlike VS Code, a pop-up menu is always presented, even if there is only one action available. Fixes eclipse-theia#12687 Signed-off-by: Christian W. Damus <[email protected]>
In VS Code, contributions to the "editor/title/run" menu contribution point are not added to the ellipsis menu but to a dedicated item on the toolbar. This commit makes Theia do the same, except that unlike VS Code, a pop-up menu is always presented, even if there is only one action available. Fixes #12687 Signed-off-by: Christian W. Damus <[email protected]>
In rebasing #12804 onto the latest instead of this: @jcortell68 or @martin-fleck-at could one of you please re-open this issue? I haven't permission as non-owner and non-committer. |
The merge of eclipse-theia#12799 introduced a regression in the rendering of MenuToolbarItems that aren't pop-up menus but instead just commands that happen to have a menu path: they were rendered as pop-up menus instead of simple buttons. This fix refines the condition for the new pop-up menu rendering to check that the menu to be rendered is not a command to be executed directly on click. Fixes eclipse-theia#12687 Signed-off-by: Christian W. Damus <[email protected]>
@cdamus I also do not have the ability to re-open this issue. |
The merge of #12799 introduced a regression in the rendering of MenuToolbarItems that aren't pop-up menus but instead just commands that happen to have a menu path: they were rendered as pop-up menus instead of simple buttons. This fix refines the condition for the new pop-up menu rendering to check that the menu to be rendered is not a command to be executed directly on click. Fixes #12687 Signed-off-by: Christian W. Damus <[email protected]>
Bug Description:
I see that support for menu insertion point "editor/title/run" was added to Theia in recent months. It works...but not really how it works in VS Code.
In VS Code, if you have two or more contributions to "editor/title/run", a "Run or Debug..." submenu item is added to the editor title area. It appears as a regular menu item in the editor title toolbar (as icon or text), with a carat next to it for opening the submenu.
In Theia, the contributions to "editor/title/run" seem to appear exactly as if they were contributed to "editor/title". I.e., there is no grouping of them into a "Run or Debug..." submenu with a caret, etc.
I don't know if this is a known limitation of the current implementation. Perhaps the point was to get the contributed menu items into the UI in the simplest form possible, but not provide the full behavior of VS Code. However, if this is an unintended behavior/gap, I'll provide reproducibility steps.
The text was updated successfully, but these errors were encountered: