|
19 | 19 | "problemMatcher": ["$ada"], |
20 | 20 | "group": "test" |
21 | 21 | }, |
22 | | - { |
23 | | - "type": "npm", |
24 | | - "script": "compile", |
25 | | - "path": "integration/vscode/ada", |
26 | | - "group": "build", |
27 | | - "problemMatcher": ["$tsc"], |
28 | | - "label": "npm: compile", |
29 | | - "detail": "node ./node_modules/typescript/bin/tsc", |
30 | | - "presentation": { |
31 | | - "echo": true, |
32 | | - "reveal": "silent", |
33 | | - "focus": false, |
34 | | - "panel": "shared", |
35 | | - "showReuseMessage": true, |
36 | | - "clear": false |
37 | | - } |
38 | | - }, |
39 | | - { |
40 | | - "type": "npm", |
41 | | - "script": "pretest", |
42 | | - "path": "integration/vscode/ada", |
43 | | - "problemMatcher": [], |
44 | | - "label": "npm: pretest", |
45 | | - "detail": "npm run compile", |
46 | | - "presentation": { |
47 | | - "echo": true, |
48 | | - "reveal": "silent", |
49 | | - "focus": false, |
50 | | - "panel": "shared", |
51 | | - "showReuseMessage": true, |
52 | | - "clear": false |
53 | | - } |
54 | | - }, |
55 | 22 | { |
56 | 23 | "type": "shell", |
57 | 24 | "label": "ada: Compile current file", |
|
79 | 46 | } |
80 | 47 | }, |
81 | 48 | { |
82 | | - "type": "gnat", |
83 | | - "taskKind": "checkFile", |
| 49 | + // This task starts a background npm process that monitors changes to |
| 50 | + // TS files and recompiles them as needed. It is configured to be run |
| 51 | + // before the (vscode)-based launch configurations to make sure the TS |
| 52 | + // files are compiled and re-compiled upon changes. |
| 53 | + "type": "npm", |
| 54 | + "script": "watch", |
| 55 | + "path": "integration/vscode/ada", |
| 56 | + "group": "build", |
| 57 | + "problemMatcher": ["$tsc-watch"], |
| 58 | + "label": "npm: watch - integration/vscode/ada", |
| 59 | + "detail": "node ./node_modules/typescript/bin/tsc -watch", |
| 60 | + "isBackground": true |
| 61 | + }, |
| 62 | + { |
| 63 | + "type": "ada", |
| 64 | + "configuration": { |
| 65 | + "kind": "checkFile", |
| 66 | + "projectFile": "${config:ada.projectFile}" |
| 67 | + }, |
84 | 68 | "problemMatcher": ["$ada"], |
85 | 69 | "group": "build", |
86 | 70 | "label": "ada: Check current file" |
|
0 commit comments