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

Read snippets as plugin resources #8468

Closed

Conversation

tsmaeder
Copy link
Contributor

@tsmaeder tsmaeder commented Sep 3, 2020

What it does

  • Introduces a pluginresource uri scheme that is used with snippet files initially
  • Introduces a PluginResource and PluginResourceResolver that can read content from plugin resource urls

How to test

In Che, I can use the Java snippets to test: they should work before and after the Java plugin starts up. Also, stuff like reading icons for views (vscode-java-test, for example) should still work.

Review checklist

Reminder for reviewers

@@ -121,8 +122,9 @@ export class PluginSharedStyle {
}

static toExternalIconUrl(iconUrl: string): string {
if (iconUrl.startsWith('hostedPlugin/')) {
Copy link
Member

Choose a reason for hiding this comment

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

we need to test for regressions in Electron, there should be a PR with How to test section before introducing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron issues related to the electron target monaco issues related to monaco plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants