-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Portable mode: Presence of data folder prevents --user-data-dir command-line override #63657
Comments
Yeah, the |
Testing.
Consistency.It is documented to do something, not documented not to do that in certain circumstances, so one could expect it to work all the time. Command line arguments generally serve such purpose. |
Well, you could apply the same argument about portable: it is documented to do something, not documented not to do that in certain circumstances (when using I think you are right, though, in that a command line flag should have priority. |
BTW, I think that until this issue is resolved it would be worth mentioning this peculiarity in the aforementioned documentation page to prevent possible frustration of fellow portable mode users. I. e. current
Amend like
|
Portable mode (presence of `/data/` folder in VSC installation directory) effectively prevents `--user-data-dir` and `--extensions-dir` switches from working. Been told it is OK and will not be changed: microsoft/vscode#63657 This info could potentially save a lot of WTH moments and confused fuddling to folks looking at this docs and not getting it working in their "Portable installs" when for example trying to launch a "vanilla" profile without touching their `/data/` directory. (This edit is crude, probably would be better as a note below table, but I couldn't figure it out how to formulate and mark it.)
Steps to Reproduce:
VSCode-...-.zip
unpacked into sayC:\apps\VSCode
C:\apps\VSCode\data
folder (docs)C:\apps\VSCode\bin\code.cmd --user-data-dir C:\other-data-dir
(aside: no command-line argument apparently works on C:\apps\VSCode\Code.exe (Portable mode does not allow running command line commands. #57185))
Expected outcome:
C:\other-data-dir
folder is created and populated with default profile (or used if existed already).Actual outcome:
C:\apps\VSCode\data\user-data
folder is created and populated, rendering command-line switch ineffective.C:\apps\VSCode\data
folderActual outcome is now correct.
The text was updated successfully, but these errors were encountered: