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

vscode: support editor/title/run predefined entry #80

Closed
wants to merge 1 commit into from

Conversation

rschnekenbu
Copy link

What it does

Adds a missing predefined entry in the menus
This enables the possibility to contribute menus to editor/title/run entry as defined in vscode.

Fixes eclipse-theia#9387

Contributed on behalf of ST Microelectronics

How to test

  1. Install following extension:
  1. Try to open a menu on any file except md file, one menu should be contributed by the extension. A second one will pop-up on any md file.
    before-addeMenu

  2. Update your theia repository to use this PR

  3. Any file should now also have an additional run menu entry, and the md files shall display a total of 4 menus with this extension.
    after-addeMenu

Review checklist

Reminder for reviewers

Copy link

@sgraband sgraband left a comment

Choose a reason for hiding this comment

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

Thank you @rschnekenbu! Seems to work great i only have one minor issue.

For me the *.md files seem to have only one (or two with your changes) menu entries, instead of two/four.
Could you double check, if the build extension is up to date with the source, or does the markdown file need to have some other properties?

Copy link

@sgraband sgraband left a comment

Choose a reason for hiding this comment

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

And the changelog message seems to be missing.

@rschnekenbu
Copy link
Author

@sgraband, thanks a lot for your review!
I doubled check on my side, downloading the provided zip file and installing it on theia, I still do have the 4 menus on *.md files. There are no specific properties.
I have rebased the branch on master, I will also create a draft PR on eclipse-theia, so I can fill in the changelog with the right PR number.

Copy link

@sgraband sgraband left a comment

Choose a reason for hiding this comment

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

I am still not able to get 4 menu entries, but maybe something is off on my side. It isn't really relevant for this change anyway, i guess, as the missing menu entry, is simply a duplicate example from the one that is already shown.

So from my side you can go ahead and open the upstream PR. And when it works for the reviewer there, we should not have a problem.

Closes: eclipse-theia#9387

The commit adds  the "editor/title/run" contribution point to menus

Contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support "editor/title/run" toolbar commands
2 participants