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

Test shell environment with tasks #122194

Closed
3 tasks done
alexr00 opened this issue Apr 26, 2021 · 0 comments
Closed
3 tasks done

Test shell environment with tasks #122194

alexr00 opened this issue Apr 26, 2021 · 0 comments

Comments

@alexr00
Copy link
Member

alexr00 commented Apr 26, 2021

Refs: #108804

Complexity: 3

Create Issue


The goal is to verify that the environment variables in a task terminal haven't changed and are resolved correctly. i.e., your tasks have the same environment as VS Code. You can use the following task as a starting point, just open a folder, such as your clone of microsoft/vscode and add the following to .vscode/tasks.json:

		{
			"label": "Echo an env var",
			"type": "shell",
			"command": "echo",
			"args": [
				"${env:path}"
			]
		}

The "${env:path}" is the important part. More info.

To verify, run the "Run Task" command and choose the above task.

  • Verify that the environment variable was resolved correctly.
  • Try replacing path in the sample task with other variables that you expect to be set.
@alexr00 alexr00 added this to the April 2021 milestone Apr 26, 2021
@alexdima alexdima removed their assignment Apr 27, 2021
@gregvanl gregvanl removed their assignment Apr 29, 2021
@alexdima alexdima assigned alexdima and unassigned TylerLeonhardt and alexdima Apr 29, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants