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

fix #7240: support loading plugins from symbolic links #7242

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

tom-shan
Copy link
Contributor

@tom-shan tom-shan commented Feb 28, 2020

What it does

Fixes #7240

using statSync instead of lstatSync, so isFile or isDirectory will
check what the symbolic link refer to but not the link itself.

How to test

  1. create a symbolic link to a plugin file with .vsix or .theia suffix
  2. start theia with this plugin check whether this plugin is loaded

Review checklist

Reminder for reviewers

using statSync instead of lstatSync, so isFile or isDirectory will
check what the symbolic link refer to but not the link itself.

Signed-off-by: tom-shan <swt0008411@163.com>
@vince-fugnitto vince-fugnitto changed the title fix https://github.com/eclipse-theia/theia/issues/7240 fix #7240: support loading plugins from symbolic links Feb 28, 2020
@vince-fugnitto vince-fugnitto added the plug-in system issues related to the plug-in system label Feb 28, 2020
Copy link
Member

@azatsarynnyy azatsarynnyy 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 checked it. Works as described. Thanks!

@akosyakov
Copy link
Member

@azatsarynnyy please merge

@azatsarynnyy azatsarynnyy merged commit 3d5e4f9 into eclipse-theia:master Mar 4, 2020
@tom-shan tom-shan deleted the symbolic-link branch March 5, 2020 01:12
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to load plugin dependencies from ... path Error: ENOTDIR: not a directory
4 participants