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

Setting to disable editor context menu entries #81

Closed
Yzrsah opened this issue Feb 8, 2019 · 4 comments
Closed

Setting to disable editor context menu entries #81

Yzrsah opened this issue Feb 8, 2019 · 4 comments
Labels
Pending Vendor Support Wishlist Wishlist Item -- Unprioritized

Comments

@Yzrsah
Copy link

Yzrsah commented Feb 8, 2019

This extension adds 13 context menu entries in JS. The context menu can easily become unusable when it's too large, and require scrolling/not fit on screen.

Please provide a setting to disable editor/context menu entries.

@cmstead
Copy link
Owner

cmstead commented Feb 8, 2019

I can see how that could be painful. What if I collapse everything into a single submenu item?

@cmstead
Copy link
Owner

cmstead commented Mar 13, 2019

After researching, it looks like there is no way to currently create submenus for the context menu. There is another item of note which I didn't mention before: menu items are actually handled in the package.json file, not from within executable code. This is problematic because it means I have to either a) turn off the menu items for everyone, or b) leave them in for everyone.

I am going to leave this issue open so I get a reminder to continue researching and see if something comes up over time. I'm sorry I don't have a better answer at the moment.

@Yzrsah
Copy link
Author

Yzrsah commented Mar 13, 2019

Thank you for the consideration.
We can help to support the open issue 9827
js-refactor is a good example of a use case for the nested menu.
I think that MS has been cold on this one in general for UI guideline reasons because they intended to keep the menus simple. But that doesn't work so well with extensions.

@cmstead cmstead added the Wishlist Wishlist Item -- Unprioritized label Mar 29, 2019
@cmstead
Copy link
Owner

cmstead commented Aug 10, 2021

I'm really sorry for taking so long to reply. I am closing up shop on JSR, BECAUSE there is a replacement tool. It's still under construction, but it should resolve the issue you are running into.

As an aside, CodeFormer has all of the actions tucked neatly into submenus, which (finally) resolves this issue.

Marketplace:

https://marketplace.visualstudio.com/items?itemName=cmstead.js-codeformer

GitHub:

https://github.com/cmstead/js-codeformer

@cmstead cmstead closed this as completed Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending Vendor Support Wishlist Wishlist Item -- Unprioritized
Projects
None yet
Development

No branches or pull requests

2 participants