Repository navigation
Enable contributable Application menu - #23030
Closed
João Moreno (joaomoreno) wants to merge 1 commit into
Closed
João Moreno (joaomoreno) wants to merge 1 commit into
João Moreno (joaomoreno) wants to merge 1 commit into
Conversation
Contributor
|
Hm... Why is it that way around? I would expect the active window to own the menu and to use the main process just as a way to get the app-menu onto the screen. I don't see the need to duplicate all the infrastructure on the main side |
Contributor
Author
|
Yeah that is also very interesting, would love to move everything to the renderer. That would make things easier. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Having a contributable application menu seems like a inevitable feature coming since the
menus.tsis growing more and more and every feature has its part in there. We'd like to disconnect all of that and have contributions come in with menu items. For example, the whole Debug menu should come in via the debug part.For this to happen, we've come up with the following plan:
CommandServicein the Main process, which simply forwards command calls to the active window.MenuRegistryandMenuServicein the main process. Figure out how to work around the fact that it requires aContextKeyService(make it optional?) and how to get sub-menus in there.menus.tsinto MenuItems. Create a new menu id for the Application menu. Should it be only 1? Should theFilebe one, theEditbe another, etc?MenuRegistryover to the main process.Benjamin Pasero (@bpasero) Johannes Rieken (@jrieken) Thoughts?