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(extensions): change portable extensions dir #782

Merged
merged 1 commit into from
Feb 26, 2019
Merged

fix(extensions): change portable extensions dir #782

merged 1 commit into from
Feb 26, 2019

Conversation

LuisUrrutia
Copy link
Contributor

Short description of what this resolves:

Solves the issue #756 caused by a hardcoded extension dir.
This is a temporary workaround and we should use the env variables to check a valid extension dir instead of hardcoded ones:

Changes proposed in this pull request:

Fixes: #756

How Has This Been Tested?

The extension was "installed" in a portable vscode and executed to sync the settings. It works nicely.

Checklist:

  • I have read the contribution guidelines.
  • My change requires a change to the documentation and Github Wiki.
  • I have updated the documentation and Wiki accordingly.

PS: There is no v3.2.6 branch as the contribution guidelines says.

@shanalikhan shanalikhan changed the base branch from master to v3.2.6 February 25, 2019 20:14
@LuisUrrutia
Copy link
Contributor Author

Previously I mistakenly created a PR to @chase9 repository due to confusion while reading PR #733

@shanalikhan shanalikhan added this to the v3.2.6 milestone Feb 25, 2019
@shanalikhan
Copy link
Owner

shanalikhan commented Feb 25, 2019

Thanks.

Is your autoUpdate for extensions turned off in code settings ?

@LuisUrrutia
Copy link
Contributor Author

you mean autoUpload? I have it turned on

@shanalikhan
Copy link
Owner

I'm talking about setting extensions.autoUpdate.
Can you check this PR in both extensions.autoUpdate enabled and disabled and let me know if its working perfectly.

@LuisUrrutia
Copy link
Contributor Author

Tested with autoUpdate on and off and works perfectly:
https://gist.github.com/LuisUrrutia/53f4378b9944e0ac56f5a712c51df2d2

@shanalikhan shanalikhan merged commit 45acf62 into shanalikhan:v3.2.6 Feb 26, 2019
@shanalikhan
Copy link
Owner

shanalikhan commented Feb 26, 2019

Great, Thanks.
Will be released in next version.

Feel free to look into other issues as well when you have time :)

@@ -9,8 +9,8 @@ import * as util from "../util";
const apiPath =
"https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery";

const extensionDir: string = ".vscode";
const extensionDirPortable: string = "/data/extensions/";
const extensionDir: string = ".vscode/";
Copy link
Owner

Choose a reason for hiding this comment

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

adding / caused in this string stopped the syncing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly! It's because the path delimiter.

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

Successfully merging this pull request may close these issues.

2 participants