Skip to content
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

Fix selection of contributed menu action argument adapters #14132

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

tsmaeder
Copy link
Contributor

@tsmaeder tsmaeder commented Sep 5, 2024

What it does

The idea is that a toolbar item has two different 'menuPath' fields: one to pick the argument adapter for the toolbar item, the second is to display a drop-down menu for the toolbar item. Also, an argument adapter is selected for an item when the registered path for the adapter is a prefix of the toolbar item menu path field. This takes care of contributed items in toolbar drop downs like the gitlens editor toolbar menu.

Fixes #14072

Contributed on behalf of STMicroelectronics

How to test

Test the various toolbar and context menus one can contribute to. Make sure the actions work and drop-downs are shown where appropriate. You can get an indication of the interesting locations in plugin-menu-command-adapter.

Follow-ups

Review checklist

Reminder for reviewers

Fixes eclipse-theia#14072

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>om>
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Copy link
Contributor

@rschnekenbu rschnekenbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I could test the issue scenario and menus around.
Can you add the changelog contribution entry please?

@tsmaeder tsmaeder merged commit 19556f4 into eclipse-theia:master Sep 5, 2024
11 checks passed
jfaltermeier pushed a commit that referenced this pull request Sep 6, 2024
Fixes #14072

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>om>
@sgraband sgraband added this to the 1.54.0 milestone Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

VS Code Extensions: Using submenus as "view/title" menu does not work
3 participants