Skip to content

Commit 89d872c

Browse files
authored
Remove isShellCommand = true. (#719)
Switch to version 2.0.0 of tasks to get task to run in terminal window. Update Examples\.vscode\tasks.json to have path to PowerShell on Linux and macOS. Fix #713
1 parent 65db46a commit 89d872c

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.vscode/tasks.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.0",
2+
"version": "2.0.0",
33

44
"windows": {
55
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe",
@@ -14,7 +14,6 @@
1414
"args": [ "-NoProfile" ]
1515
},
1616

17-
"isShellCommand": true,
1817
"showOutput": "always",
1918

2019
"tasks": [

examples/.vscode/tasks.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,24 @@
2929
// ${fileExtname}: the current opened file's extension
3030
// ${cwd}: the current working directory of the spawned process
3131
{
32-
"version": "0.1.0",
32+
"version": "2.0.0",
3333

34-
// Start PowerShell
35-
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe",
34+
// Start PowerShell
35+
"windows": {
36+
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe",
37+
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ]
38+
},
39+
"linux": {
40+
"command": "/usr/bin/powershell",
41+
"args": [ "-NoProfile" ]
42+
},
43+
"osx": {
44+
"command": "/usr/local/bin/powershell",
45+
"args": [ "-NoProfile" ]
46+
},
3647

37-
// The command is a shell script
38-
"isShellCommand": true,
39-
40-
// Show the output window always
41-
"showOutput": "always",
42-
43-
"args": [
44-
"-NoProfile", "-ExecutionPolicy", "Bypass"
45-
],
48+
// Show the output window always
49+
"showOutput": "always",
4650

4751
// Associate with test task runner
4852
"tasks": [

0 commit comments

Comments
 (0)