-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytasksTask system issuesTask system issues
Milestone
Description
Environment variables can not be passed in when runs task if my VS Code use WSL as default shell.
Version: 1.52.1 (user setup)
Commit: ea3859d
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042
Steps to Reproduce:
- Have the following task in .vscode/tasks.json
{ "label": "test env", "type": "npm", "path": "tabs/", "script": "test", "options": { "env": { "test_abc": "123" } } }, - Have the following script in ./tabs/package.json
"scripts": {
"test": "echo $test_abc"
},- Trigger command pallate "Task: Run task" and select "test env" task. The following output shows the environment variable is not passed into the script:
> Executing task: npm run test <
> microsoft-teams-ext@0.1.0 test /mnt/c/Users/dilin/Downloads/test/local-debug-test/test0114/tab-rc11/tabs
> echo $test_abc
Terminal will be reused by tasks, press any key to close it.idanpa, dilin-MS and A2va
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytasksTask system issuesTask system issues