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

Update paths.js to allow use of ENV variable as alternative to cmd args #26848

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

apwelsh
Copy link
Contributor

@apwelsh apwelsh commented May 18, 2017

…override for userDataPath

This patch allows defining the environment variable "vscode_config_prefix" as a global default, instead of relying on command line arguments. The solution is similar to NPM's npm_config_prefix environment variable. if defined, APPDATA, XDG_CONFIG_HOME, and other solutions are ignored for determining the path value. This is 1/2 the solution to removing the user data from the Windows roaming profile.

…override for userDataPath

This patch allows defining the environment variable "vscode_config_prefix" as a global default, instead of relying on command line arguments.  The solution is similar to NPM's npm_config_prefix environment variable.  if defined, APPDATA, XDG_CONFIG_HOME, and other solutions are ignored for determining the path value.  This is 1/2 the solution to removing the user data from the Windows roaming profile.
@mention-bot
Copy link

@apwelsh, thanks for your PR! By analyzing the history of the files in this pull request, we identified @joaomoreno and @bpasero to be potential reviewers.

@msftclas
Copy link

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@joaomoreno joaomoreno added this to the Backlog milestone May 19, 2017
@joaomoreno joaomoreno added the under-discussion Issue is under discussion for relevance, priority, approach label May 19, 2017
@joaomoreno
Copy link
Member

Let's discuss this in #26849 as well.

@joaomoreno joaomoreno merged commit 5f73e5a into microsoft:master Aug 10, 2017
@joaomoreno
Copy link
Member

I've renamed the variable to VSCODE_APPDATA.

Thanks! 🍻

@apwelsh
Copy link
Contributor Author

apwelsh commented Aug 10, 2017

Thanks. Makes sense. I modeled the variable names off of npm / yarn naming conventions. I look forward to the deployment of the build that has this enhancement.

@apwelsh apwelsh deleted the patch-1 branch August 10, 2017 23:09
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants