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

Improved variables support #45

Open
arikw opened this issue Apr 22, 2020 · 0 comments
Open

Improved variables support #45

arikw opened this issue Apr 22, 2020 · 0 comments

Comments

@arikw
Copy link

arikw commented Apr 22, 2020

I want to start a command in a specific workspace folder.

VSCode configuration files support variables and, for example, you can start a terminal in a workspace folder called "proj2" like so:

{
    "terminal.integrated.cwd": "${workspaceFolder:proj2}"
}

If Terminals would support variables in the cwd option, it would be possible to achieve my goal by adding "cwd": "${workspaceFolder:proj2}" to the terminal's configuration

Also, I want to inherit the PATH env variable I defined in the global env configuration and extend it in the terminal's configuration. For example:

{
    "env": { // Global environment variables
        "PATH": "${workspaceFolder:proj2}/scripts;${env:PATH};"
    },
    "terminals": [
        {
            "env": {
                "PATH": "${global:PATH};/more/path"
            }
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants