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

always use CommandService.execute to run a command #7326

Merged
merged 1 commit into from
Mar 13, 2020

Conversation

akosyakov
Copy link
Member

@akosyakov akosyakov commented Mar 12, 2020

What it does

How to test

  • Trigger Find All References with a keybiding from ts file
  • Reference Search view should be opened and when ts is finished initialization references should appear
  • There should not be exception in logs that a command handler was not found as before.

Review checklist

Reminder for reviewers

@akosyakov akosyakov added monaco issues related to monaco vscode issues related to VSCode compatibility labels Mar 12, 2020
@akosyakov akosyakov added the commands issues related to application commands label Mar 12, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to successfully trigger find all references using the keybinding (which was not possible on master) 👍

I did notice a future improvement, which is to display the keybinding for commands contributed by VS Code extensions (shift+alt+F12)

image

@akosyakov
Copy link
Member Author

akosyakov commented Mar 12, 2020

I did notice a future improvement, which is to display the keybinding for commands contributed by VS Code extensions (shift+alt+F12)

@vince-fugnitto not sure why it is not in the context menu, but i see it in the quick command palette. Could you file a follow-up issue please?

@vince-fugnitto
Copy link
Member

I did notice a future improvement, which is to display the keybinding for commands contributed by VS Code extensions (shift+alt+F12)

@vince-fugnitto not sure why it is not in the context menu, but i see it in the quick command palette. Could you file a follow-up issue please?

#7327

@kittaakos kittaakos self-requested a review March 12, 2020 13:19
Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the changelog with the breaking API changes. Thanks!

@akosyakov
Copy link
Member Author

@kittaakos What is breaking?

@kittaakos
Copy link
Contributor

@kittaakos
Copy link
Contributor

@akosyakov
Copy link
Member Author

akosyakov commented Mar 12, 2020

For instance: https://github.com/eclipse-theia/theia/pull/7326/files#diff-ab6e2d4c57658cf60e550cfe9ba87eacR304

I can, but i don't think it is practical. I am pretty sure that it is only client.

Here is another: https://github.com/eclipse-theia/theia/pull/7326/files#diff-d284be88aa06fd2706aeac668e61375aR291

How is it going to break? It is a new field which is only used by CommandRegistry. Do you know anyone reimplementing CommandRegistry?

@akosyakov
Copy link
Member Author

akosyakov commented Mar 12, 2020

Here is another: https://github.com/eclipse-theia/theia/pull/7326/files#diff-d284be88aa06fd2706aeac668e61375aR291

Actually, it is not related to our CommandRegistry. It is exposing Monaco internals API. It was there always and noone except our implementation of Monaco context menu is using it.

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
@akosyakov akosyakov force-pushed the akosyakov/plugins-are-not-activated-7324 branch from fc3daf4 to c3db052 Compare March 13, 2020 09:21
@akosyakov
Copy link
Member Author

@kittaakos I've made args optional, if it is turned out that someone called fireWillExecute method. For Monaco I don't think we need to log any breaking changes. It is a glue code between Theia and monaco internals.

@akosyakov akosyakov merged commit 9457f80 into master Mar 13, 2020
@akosyakov akosyakov deleted the akosyakov/plugins-are-not-activated-7324 branch March 13, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commands issues related to application commands monaco issues related to monaco vscode issues related to VSCode compatibility
Projects
None yet
3 participants