返回 CodeWhale
tasks.json
根目录 / extensions / vscode / .vscode / tasks.json
1 {
2 "version": "2.0.0",
3 "tasks": [
4 {
5 "label": "watch",
6 "detail": "tsc -p ./ --watch — background compile for the Run Extension launch config",
7 "type": "shell",
8 "command": "npx tsc -p ./ --watch",
9 "options": { "cwd": "${workspaceFolder}" },
10 "isBackground": true,
11 "problemMatcher": "$tsc-watch",
12 "presentation": { "reveal": "never", "panel": "dedicated" },
13 "group": { "kind": "build", "isDefault": true }
14 },
15 {
16 "label": "compile",
17 "detail": "tsc -p ./ — one-shot build into out/",
18 "type": "shell",
19 "command": "npx tsc -p ./",
20 "options": { "cwd": "${workspaceFolder}" },
21 "problemMatcher": "$tsc",
22 "presentation": { "reveal": "silent", "panel": "dedicated" },
23 "group": "build"
24 }
25 ]
26 }
27
27 lines JSON