|
6 | 6 | "version": "0.2.0", |
7 | 7 | "configurations": [ |
8 | 8 | { |
9 | | - "name": "Run AZD Extension", |
| 9 | + "name": "Run Extension", |
10 | 10 | "type": "extensionHost", |
11 | 11 | "request": "launch", |
12 | 12 | "args": [ |
13 | | - "--extensionDevelopmentPath=${workspaceFolder}" |
| 13 | + "--extensionDevelopmentPath=${workspaceFolder}", |
14 | 14 | ], |
15 | | - "preLaunchTask": "${defaultBuildTask}", |
16 | 15 | "env": { |
17 | | - // Disable telemetry when running the extension under the debugger. |
18 | | - // Set this to "verbose" to show telemetry in the console during debugging. |
19 | | - "DEBUGTELEMETRY": "true" |
| 16 | + "DEBUGTELEMETRY": "1", |
20 | 17 | }, |
21 | 18 | "outFiles": [ |
22 | | - "${workspaceFolder}/dist/**/*.js", |
23 | | - "${workspaceFolder}/*.js" |
| 19 | + "${workspaceFolder}/dist/**/*.{js,mjs,cjs}", |
24 | 20 | ], |
| 21 | + "preLaunchTask": "Watch: ESBuild", |
25 | 22 | }, |
26 | 23 | { |
27 | 24 | "name": "Run AZD + Azure Resources Extensions", |
|
31 | 28 | "--extensionDevelopmentPath=${workspaceFolder}/../../../vscode-azureresourcegroups", |
32 | 29 | "--extensionDevelopmentPath=${workspaceFolder}", |
33 | 30 | ], |
34 | | - "preLaunchTask": "${defaultBuildTask}", |
35 | 31 | "env": { |
36 | | - // Disable telemetry when running the extension under the debugger. |
37 | | - // Set this to "verbose" to show telemetry in the console during debugging. |
38 | | - "DEBUGTELEMETRY": "true" |
| 32 | + "DEBUGTELEMETRY": "1", |
39 | 33 | }, |
40 | 34 | "outFiles": [ |
41 | | - "${workspaceFolder}/dist/**/*.js", |
42 | | - "${workspaceFolder}/*.js", |
43 | | - "${workspaceFolder}/../../../vscode-azureresourcegroups/dist/**/*.js", |
44 | | - "${workspaceFolder}/../../../vscode-azureresourcegroups/*.js" |
| 35 | + "${workspaceFolder}/dist/**/*.{js,mjs,cjs}", |
| 36 | + "${workspaceFolder}/../../../vscode-azureresourcegroups/dist/**/*.{js,mjs,cjs}", |
45 | 37 | ], |
| 38 | + "preLaunchTask": "Watch: ESBuild", |
46 | 39 | }, |
47 | 40 | { |
48 | | - "name": "Debug Unit Tests", |
| 41 | + "name": "Run Tests", |
49 | 42 | "type": "extensionHost", |
50 | 43 | "request": "launch", |
51 | | - "args": [ |
52 | | - "--extensionDevelopmentPath=${workspaceFolder}", |
53 | | - "--extensionTestsPath=${workspaceFolder}/out/test/suite/unitTests" |
54 | | - ], |
| 44 | + "testConfiguration": "${workspaceFolder}/.vscode-test.mjs", |
| 45 | + "env": { |
| 46 | + "DEBUGTELEMETRY": "1", |
| 47 | + }, |
55 | 48 | "outFiles": [ |
56 | | - "${workspaceFolder}/out/test/**/*.js" |
| 49 | + "${workspaceFolder}/dist/**/*.{js,mjs,cjs}", |
| 50 | + "${workspaceFolder}/src/**/*.{ts,mts,cts}", // We are using TSX so out files *are* the source files |
57 | 51 | ], |
58 | | - "preLaunchTask": "${defaultBuildTask}", |
59 | | - "env": { |
60 | | - // Disable test timeouts and telemetry when debugging tests. |
61 | | - "TEST_TIMEOUT": "0", |
62 | | - "DEBUGTELEMETRY": "true" |
63 | | - } |
64 | | - } |
| 52 | + "preLaunchTask": "Watch: ESBuild", |
| 53 | + }, |
65 | 54 | ] |
66 | 55 | } |
0 commit comments