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

[plugin] map dependencies to vscode builtins properly #6207

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

svenefftinge
Copy link
Contributor

What it does

The builtin extension from vscode that we hare releasing to npm.js need to have an altered package name because the simple names would conflict. Unfortunately there are a few extensions outthere, that have specified dependencies to these extensions using their original name.

For example, ionide asks for vscode.fsharp while we have vscode.@theia/vscode-built-fsharp

How to test

Use this gitpod snapshot, which has both extensions in the plugins folder already.
Try with and without the change.

Open in Gitpod

Or download those extensions manually and try to reproduce locally.

Review checklist

Reminder for reviewers

@akosyakov
Copy link
Member

akosyakov commented Sep 18, 2019

Could we override pck name instead if a bult-in extension package is coming from npm, for example here:

protected resolveFromNpmTarball(plugin: PluginDeployerEntry): boolean {

then the plugin will have a proper id always, not only during activation dependency check.

@akosyakov akosyakov added the vscode issues related to VSCode compatibility label Sep 18, 2019
@svenefftinge
Copy link
Contributor Author

svenefftinge commented Sep 18, 2019

That is unfortunately not the only place we read the package.json.
Anyway, I moved the change to the single relevant place.

Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

It worked nicely for me.

@7sharp9
Copy link

7sharp9 commented Sep 19, 2019

So is this now released?

@akosyakov
Copy link
Member

It is only in latest nightly Theia version, in latest stable Theia it will be at the end of month. In Gitpod as soon as we update it to use latest nightly. cc @svenefftinge

@7sharp9
Copy link

7sharp9 commented Sep 20, 2019

Ok, Im just eager to keep chipping away at getting ionide to work.

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

Successfully merging this pull request may close these issues.

3 participants