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

prefer listed plugins to dependencies #6038

Merged
merged 1 commit into from
Aug 26, 2019
Merged

prefer listed plugins to dependencies #6038

merged 1 commit into from
Aug 26, 2019

Conversation

akosyakov
Copy link
Member

@akosyakov akosyakov commented Aug 25, 2019

What it does

It's a bug fix for #5379. We should either test and merge this PR for 0.10.0, or revert #5379. Right now it breaks all products which consumes from local files.

How to test

  • put a flutter and dart VS Code extensions as vsix files to plugins folder
  • start Theia
  • make sure that dart extension is loaded from vsix file, not downloaded from the marketplace
    • you can do it by looking at backend logs
    • in order to be sure you can also build dart extension from sources that unzipping it not involved:

Review checklist

Reminder for reviewers


// now that we have plugins check if we have File Handler for them
await this.applyFileHandlers(pluginDeployerEntries);

// ok now ask for directory handlers
await this.applyDirectoryFileHandlers(pluginDeployerEntries);

// add current plugin deployer entries first because dependencies to be installed first
Copy link
Member Author

Choose a reason for hiding this comment

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

@JPinkney It does not matter in which order plugins are deployed. They are only loaded when a frontend is connected by then all plugins should be already on the disk.

@akosyakov
Copy link
Member Author

@vince-fugnitto @marcdumais-work it is important for 0.10.0

@akosyakov akosyakov added plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility labels Aug 25, 2019
otherwise the wrong version gets installed from a marketplace instead of from local vsix file for example

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Copy link
Contributor

@JPinkney JPinkney left a comment

Choose a reason for hiding this comment

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

I've tested it both the way you listed and by using deploy by plugin id with the ms-kubernetes-tools.vscode-kubernetes-tools extension (it has vscode-yaml as extension dependency) and both seem to work

@akosyakov
Copy link
Member Author

akosyakov commented Aug 26, 2019

@AlexTugarev could you please approve it as well @JPinkney is not an official committer yet, unfortunately, PR can be only merged after the approved by a committer

Copy link
Contributor

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

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

The code changes look good to me! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

plugin system should prefer listed plugins instead of dependencies
3 participants