-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Add open context to certain commands #110475
Conversation
https://github.com/microsoft/vscode/pull/110475/files#diff-ee44b7286aa52f5c5a2737955cebe3a73945354241d92bcfd8708cca313600b0R469-R473 is a bit of magic, but I did not want to overengineer it. If someone has a better idea, let me know... |
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.
lgtm - I also think that the check for command ids in the tree is a little hacky, esp when we copy that for SCM and the timeline. But maybe we come up with something before this starts to spread
@alexr00 please take a look at the JSDoc comment I adde to the
|
* editor commands - move API commands to workbench core * rename EditorViewColumn => EditorGroupColumn * mixin context to open commands * address some feedback * add comment
This PR does 2 things:
_workbench.open
and friends into core workbench (this helps to depend on the command IDs from core parts in the future)IOpenEvent
as argument to these commands in case invoked from treesThis PR fixes #85636
PS: I also made
EditorViewColumn
a core thing as well (renamed toEditorGroupColumn
)