-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Support for updatable/async menus and submenus #149323
Comments
As of today we have no support for lazy menus. Those would be required because at the time of clicking "Refactor" we don't know what refactorings are available. We need to do an async IPC call for that and therefore cannot draw submenu. We have a custom menu that could support this and I have seen this in native macOS app but I don't know if this is doable with electron. Forwarding to menu folks |
Being able to update a menu while it shows should be enough. We would show "Loading..." and later update the menu in-place. I assume that's the min-requirement to get this working |
I don't see anything on the electron side that would let us support this https://www.electronjs.org/docs/latest/api/menu-item |
Upstream issue electron/electron#24724 |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
@sbatten could we use Electron's |
@joyceerhl the menu append calls do not update the menu while being drawn the changes get reflected in subsequent draw calls, previously linked upstream issue is incorrect, the correct one is electron/electron#528 |
In Java extension, we often receive feedback from users that refactoring and source action features are missing even though these features exist under these menus. We're thinking if there is a way to improve feature discovery for them.
Currently, users must click on the editor's context menu "Refactoring..." and "Source Action..." to display the supported options, which is not visible to new users. To improve visibility, one suggestion is whether VS Code could automatically expand their submenus when the cursor hovers over them.
The text was updated successfully, but these errors were encountered: