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 bundled extension install on Linux/AppImage #1163

Merged
merged 2 commits into from
Oct 28, 2020

Conversation

jakolehm
Copy link
Contributor

Fixes #1162

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@jakolehm jakolehm added bug Something isn't working area/linux area/extension Something to related to the extension api labels Oct 28, 2020
@jakolehm jakolehm added this to the 4.0.0 milestone Oct 28, 2020
@jakolehm jakolehm requested a review from nevalla October 28, 2020 07:15
Copy link
Contributor

@nevalla nevalla left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -39,7 +47,13 @@ export class ExtensionManager {

async load() {
logger.info("[EXTENSION-MANAGER] loading extensions from " + this.extensionPackagesRoot)
await fs.ensureDir(path.join(this.extensionPackagesRoot, "node_modules"))
if (this.inTreeFolderPath !== this.inTreeTargetPath) {
Copy link
Contributor

Choose a reason for hiding this comment

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

when this condition is false? (ie this.inTreeFolderPath === this.inTreeTargetPath)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not actually sure (I think it depends on an environment). This is just to safeguard our in-tree extensions (if these match we would remove sources).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Other option is to check if this.inTreeFolderPath is read-only.

@jakolehm jakolehm merged commit c3bde1a into master Oct 28, 2020
@jakolehm jakolehm mentioned this pull request Oct 28, 2020
@jakolehm jakolehm deleted the fix/in-tree-extension-install-in-sandbox branch November 6, 2020 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extension Something to related to the extension api area/linux bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lens fails to install bundled extensions on Linux/AppImage
2 participants