-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
possible solution to resolve --user-data-dir and --extensions-dir (#869, #411, #331, and etc) #905
Comments
@jjangga0214 The changes in v3.3.0 were necessary to support all versions of VSCode. Also, using the API to install extensions should completely fix this issue. Have you tried installing a build of v3.3.0 and trying that out? |
@jjangga0214 Try installing this VSIX: https://cdn.discordapp.com/attachments/549007146868539408/587599453708353566/code-settings-sync-3.2.9.vsix If you don't know how: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix |
@arnohovhannisyan Happy to see it works even on today! |
Duplicate of #411 |
Hi, while using vscode as root on Kali linux with
--user-data-dir
(e.g.code --user-data-dir /root/.config/vscode
), I faced an issue that code-settings-sync does not install extensions.It seems the problem is caused from the fact that there's no vscode API for an extenstion to detect
--user-data-dir
and--extensions-dir
. I could also found issues like #869 and #411.And if so, we don't know whether and when the API are to be provided. Therefore, I suggests a (possibly temporary) workaround.
The idea is user provides environment variables like
$CODE_USER_DATA_DIR
or$CODE_EXTENSIONS_DIR
. For instance, I could runCODE_USER_DATA_DIR=/root/.config/vscode code --user-data-dir /root/.config/vscode
.To achieve that, we might abandon using
vscode.commands.executeCommand
, and replace it with cli.src/service/pluginService.ts
v3.3.0 (line 221)
Suggestion (concept code) based on master (line 301)
How do you think of the idea?
The text was updated successfully, but these errors were encountered: