-
Notifications
You must be signed in to change notification settings - Fork 20
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
Make rebind of CommandPalette optional #65
Conversation
container.rebind(CommandPalette).to(TheiaCommandPalette); | ||
if (container.isBound(CommandPalette)) { | ||
container.rebind(CommandPalette).to(TheiaCommandPalette); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but shouldn't we do a "normal" bind if it is not already bound?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I think it doesn't really make sense to bind it if the CommandPalette
isn't bound. If it isn't bound, the diagram editor doesn't want to have one, so we shouldn't then bind the TheiaCommandPalette
either. Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, sorry, I somehow was not thinking about that! You are absolutely right! Or is there a way to bind an "empty" command palette? @tortmayr
3683b78
to
28a4778
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I retested this change with the current master and everything still works very well. It seems that the popup now also vanishes already when opening the context menu but this may also be due to the Theia update. Nevertheless, everything still works fine, please just remove the last commit as the yarn.lock on master is now the correct one.
edde22d
to
28a4778
Compare
Thanks @martin-fleck-at! I force-pushed the single-commit without the yarn.lock change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you very much Philip!
Fixes eclipse-glsp/glsp#188