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

Add a few vscode menu contribution points #13226

Merged
merged 5 commits into from
Feb 27, 2024

Conversation

jonah-iden
Copy link
Contributor

What it does

implements parts of #13051
specificly:

  • extension/context
  • terminal/context
  • terminal/title/context

since Theias terminals are there own tabs, the last contribution is implemented when right clicking on the tab title.
The others should be at the same place they are in vscode

How to test

Here is a test extension (inlucluding vsix) which adds a menu entry to all of theias missing contribution points.

extension/context can be found when clicking the cog wheel (or right clicking) on an extension in the Extension widget
terminal/context can be found when right clicking inside a terminal
terminal/title/context can be found when right clicking the tab title of a terminal

im not too happy with having the menu path ['extensions_context_menu', '3_contribution'] duplicated. If you have an idea where to place the constant for this i'd be happy to implement it.

Follow-ups

Review checklist

Reminder for reviewers

@jonah-iden jonah-iden changed the title Jiden/add vscode contribution points add more missing vscode menu contribution points Jan 3, 2024
@msujew msujew added vscode issues related to VSCode compatibility menus issues related to the menu labels Jan 9, 2024
@msujew msujew changed the title add more missing vscode menu contribution points Add a few vscode menu contribution points Jan 9, 2024
@rschnekenbu
Copy link
Contributor

I would be happy to help for review here

Copy link
Contributor

@rschnekenbu rschnekenbu left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, @jonah-iden!
I have some issues with the sample extension provided on vsx extensions and terminal titles, could you have a look?

@jonah-iden jonah-iden force-pushed the jiden/add-vscode-contribution-points branch from d508b5e to 7e47b82 Compare February 8, 2024 12:48
Copy link
Contributor

@rschnekenbu rschnekenbu left a comment

Choose a reason for hiding this comment

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

That looks good to me, thanks for the contribution. I only have 2 minors comments, but otherwise, provided extension point work as expected.

packages/core/src/browser/shell/tab-bars.ts Outdated Show resolved Hide resolved
packages/core/src/browser/shell/tab-bars.ts Outdated Show resolved Hide resolved
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
…tion points

Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
…mands

Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
Copy link
Contributor

@rschnekenbu rschnekenbu left a 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 now! Thanks @jonah-iden!

This was referenced Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
menus issues related to the menu vscode issues related to VSCode compatibility
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants