-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
fix(extensions): change portable extensions dir #782
Conversation
Thanks. Is your |
you mean |
I'm talking about setting |
Tested with |
Great, Thanks. 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/"; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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:
The
extensionDir
variable was changed to.vscode/
to prevent the sync of "something" with.vscode
in its name. (ex:bung87.vscode-gemfile
)https://github.com/chase9/code-settings-sync/blob/36461174f534fefc4bce03a6f4ca182090287360/src/service/pluginService.ts#L12
The
extensionDirPortable
variable was changed to/extensions/
because the path for the extensions folder in a portable VSCode instance, isextensions
https://github.com/chase9/code-settings-sync/blob/36461174f534fefc4bce03a6f4ca182090287360/src/service/pluginService.ts#L13
Ref to
extensions
path in vscode:https://github.com/Microsoft/vscode/blob/14f25a610224cea1b7fc97da63ad2304951f60a5/src/vs/platform/environment/node/environmentService.ts#L168
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:
PS: There is no v3.2.6 branch as the contribution guidelines says.