Skip to content

Commit

Permalink
Replace hardcoded c:\windows with ${env:windir}.
Browse files Browse the repository at this point in the history
We used to have ${env.windir} but then VSCode broke us so we switched back to C:\Windows.

It turns out that the VSCode folks changed the syntax to ${env:windir} - replacing the dot with a colon.

Here's the VSCode issue describing this: microsoft/vscode#28365 (comment)
  • Loading branch information
rkeithhill authored and daviwil committed Jun 17, 2017
1 parent 3bcd36d commit ab4b4c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "2.0.0",

"windows": {
"command": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"command": "${env:windir}\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ]
},
"linux": {
Expand Down
2 changes: 1 addition & 1 deletion examples/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

// Start PowerShell
"windows": {
"command": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"command": "${env:windir}\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ]
},
"linux": {
Expand Down

0 comments on commit ab4b4c2

Please sign in to comment.