Skip to content

Commit 3f66ab2

Browse files
committed
Update vscode tasks example in readme
1 parent 67869f3 commit 3f66ab2

1 file changed

Lines changed: 22 additions & 5 deletions

File tree

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,41 @@ Compiles the AMX Mod X plugin source file `plugin2.sma` *without* user confirmat
2626

2727
### via VSCode
2828

29-
[Build Tasks](https://code.visualstudio.com/docs/editor/tasks#vscode) can be utilized to ease the development of plugins right from within the code editor.
29+
[Build Tasks](https://code.visualstudio.com/docs/editor/tasks#vscode) can be utilized to ease the development of plugins within the code editor.
3030

3131
```json
3232
// In tasks.json
3333
{
3434
"version": "2.0.0",
3535
"tasks": [
3636
{
37-
"label": "Compile-SourceScript",
37+
"label": "Compile-SourceScript (pwsh)",
3838
"type": "process",
39-
"command": "Powershell",
39+
"command": "pwsh",
4040
"args": [
4141
"-File",
42-
"D:/git/compile-sourcescript/Compile-SourceScript.ps1",
42+
"D:/Git/compile-sourcescript/Compile-SourceScript.ps1",
4343
"-File",
4444
"${file}",
4545
"-Force"
46-
]
46+
],
47+
"group": {
48+
"kind": "build",
49+
"isDefault": true
50+
}
51+
},
52+
{
53+
"label": "Compile-SourceScript (powershell)",
54+
"type": "process",
55+
"command": "powershell",
56+
"args": [
57+
"-File",
58+
"D:/Git/compile-sourcescript/Compile-SourceScript.ps1",
59+
"-File",
60+
"${file}",
61+
"-Force"
62+
],
63+
"group": "build"
4764
}
4865
]
4966
}

0 commit comments

Comments
 (0)