|
1 | 1 | // A launch configuration that compiles the extension and then opens it inside a new window
|
2 | 2 | {
|
3 |
| - "version": "0.1.0", |
| 3 | + "version": "0.2.0", |
4 | 4 | "configurations": [
|
5 | 5 | {
|
6 | 6 | "name": "Launch Extension",
|
7 | 7 | "type": "extensionHost",
|
8 | 8 | "request": "launch",
|
9 | 9 | "runtimeExecutable": "${execPath}",
|
10 |
| - "args": [ |
11 |
| - "--extensionDevelopmentPath=${workspaceFolder}" |
12 |
| - ], |
13 |
| - "outFiles": [ |
14 |
| - "${workspaceFolder}/out/**/*.js" |
15 |
| - ], |
| 10 | + "args": ["--extensionDevelopmentPath=${workspaceFolder}"], |
| 11 | + "outFiles": ["${workspaceFolder}/out/**/*.js"], |
16 | 12 | "preLaunchTask": "${defaultBuildTask}",
|
17 | 13 | "env": {
|
18 | 14 | "DEBUGTELEMETRY": "v",
|
|
28 | 24 | "--extensionDevelopmentPath=${workspaceFolder}",
|
29 | 25 | "--extensionDevelopmentPath=${workspaceFolder}/../vscode-azureresourcegroups"
|
30 | 26 | ],
|
31 |
| - "outFiles": [ |
32 |
| - "${workspaceFolder}/out/**/*.js" |
33 |
| - ], |
| 27 | + "outFiles": ["${workspaceFolder}/out/**/*.js"], |
34 | 28 | "preLaunchTask": "${defaultBuildTask}",
|
35 | 29 | "env": {
|
36 | 30 | "DEBUGTELEMETRY": "v",
|
|
42 | 36 | "type": "extensionHost",
|
43 | 37 | "request": "launch",
|
44 | 38 | "runtimeExecutable": "${execPath}",
|
| 39 | + "args": ["--extensionDevelopmentPath=${workspaceFolder}/dist"], |
| 40 | + "outFiles": ["${workspaceFolder}/dist/**/*.js"], |
| 41 | + "preLaunchTask": "Watch", |
| 42 | + "autoAttachChildProcesses": true, |
| 43 | + "debugWebWorkerHost": true, |
| 44 | + "debugWebviews": false, |
| 45 | + "trace": true, |
| 46 | + "sourceMaps": true, |
| 47 | + "pauseForSourceMap": true, |
| 48 | + "rendererDebugOptions": { |
| 49 | + "webRoot": "${workspaceFolder}" |
| 50 | + }, |
| 51 | + "resolveSourceMapLocations": ["${workspaceFolder}/dist/**", "!**/node_modules/**"], |
| 52 | + "sourceMapPathOverrides": { |
| 53 | + "./*": "${workspaceFolder}/*" |
| 54 | + }, |
| 55 | + "env": { |
| 56 | + "DEBUGTELEMETRY": "", |
| 57 | + "NODE_DEBUG": "", |
| 58 | + "DEBUG_WEBPACK": "", |
| 59 | + "DEVSERVER": "true", |
| 60 | + "STOP_ON_ENTRY": "false" // stop on entry is not allowed for "type": "extensionHost", therefore, it's emulated here (review main.ts) |
| 61 | + } |
| 62 | + }, |
| 63 | + { |
| 64 | + "name": "Launch Extension + Host (webpack)", |
| 65 | + "type": "extensionHost", |
| 66 | + "request": "launch", |
| 67 | + "runtimeExecutable": "${execPath}", |
45 | 68 | "args": [
|
46 |
| - "--extensionDevelopmentPath=${workspaceFolder}" |
| 69 | + "--profile=noExtensionsProfile", // uses a local profile with a limited number of installed extensions |
| 70 | + "--extensionDevelopmentPath=${workspaceFolder}/dist", |
| 71 | + "--extensionDevelopmentPath=${workspaceFolder}/../vscode-azureresourcegroups" |
47 | 72 | ],
|
48 | 73 | "outFiles": [
|
49 |
| - "${workspaceFolder}/dist/**/*.js" |
| 74 | + "${workspaceFolder}/dist/**/*.js", |
| 75 | + "${workspaceFolder}/../vscode-azureresourcegroups/out/**/*.js" |
50 | 76 | ],
|
51 |
| - "preLaunchTask": "npm: webpack", |
| 77 | + "resolveSourceMapLocations": ["${workspaceFolder}/dist/**", "!**/node_modules/**"], |
| 78 | + "sourceMapPathOverrides": { |
| 79 | + "./*": "${workspaceFolder}/*" |
| 80 | + }, |
| 81 | + "preLaunchTask": "Watch", |
52 | 82 | "env": {
|
53 | 83 | "DEBUGTELEMETRY": "v",
|
54 | 84 | "NODE_DEBUG": "",
|
55 |
| - "DEBUG_WEBPACK": "1" |
56 |
| - } |
| 85 | + "DEBUG_WEBPACK": "", |
| 86 | + "DEVSERVER": "true", |
| 87 | + "STOP_ON_ENTRY": "false" // stop on entry is not allowed for "type": "extensionHost", therefore, it's emulated here (review main.ts) |
| 88 | + }, |
| 89 | + "debugWebWorkerHost": true, |
| 90 | + "rendererDebugOptions": { |
| 91 | + "pauseForSourceMap": true, |
| 92 | + "sourceMapRenames": true, |
| 93 | + "sourceMaps": true, |
| 94 | + "webRoot": "${workspaceFolder}/src/webviews/" |
| 95 | + }, |
| 96 | + "skipFiles": ["**/node_modules/**"], |
| 97 | + "smartStep": true, |
| 98 | + "sourceMapRenames": true, |
| 99 | + "sourceMaps": true, |
| 100 | + "pauseForSourceMap": true, |
| 101 | + "trace": true |
57 | 102 | },
|
58 | 103 | {
|
59 | 104 | "name": "Launch Tests",
|
|
65 | 110 | "--extensionTestsPath=${workspaceFolder}/out/test/index",
|
66 | 111 | "${workspaceFolder}/test/test.code-workspace"
|
67 | 112 | ],
|
68 |
| - "outFiles": [ |
69 |
| - "${workspaceFolder}/out/**/*.js" |
70 |
| - ], |
| 113 | + "outFiles": ["${workspaceFolder}/out/**/*.js"], |
71 | 114 | "preLaunchTask": "${defaultBuildTask}",
|
72 | 115 | "env": {
|
73 | 116 | "MOCHA_grep": "", // RegExp of tests to run (empty for all)
|
|
87 | 130 | "--extensionTestsPath=${workspaceFolder}/dist/test/index",
|
88 | 131 | "${workspaceFolder}/test/test.code-workspace"
|
89 | 132 | ],
|
90 |
| - "outFiles": [ |
91 |
| - "${workspaceFolder}/dist/**/*.js" |
92 |
| - ], |
| 133 | + "outFiles": ["${workspaceFolder}/dist/**/*.js"], |
93 | 134 | "preLaunchTask": "npm: webpack",
|
94 | 135 | "env": {
|
95 | 136 | "MOCHA_grep": "", // RegExp of tests to run (empty for all)
|
|
107 | 148 | "protocol": "inspector",
|
108 | 149 | "port": 6005,
|
109 | 150 | "sourceMaps": true,
|
110 |
| - "outFiles": [ |
111 |
| - "${workspaceFolder}/dist/**/*.js" |
112 |
| - ] |
| 151 | + "outFiles": ["${workspaceFolder}/dist/**/*.js"] |
113 | 152 | },
|
114 | 153 | {
|
115 | 154 | "type": "node",
|
|
119 | 158 | "port": 5870,
|
120 | 159 | "sourceMaps": true,
|
121 | 160 | "restart": true,
|
122 |
| - "outFiles": [ |
123 |
| - "${workspaceFolder}/out/src" |
124 |
| - ] |
| 161 | + "outFiles": ["${workspaceFolder}/out/src"] |
125 | 162 | },
|
126 | 163 | {
|
127 | 164 | // INSTRUCTIONS
|
|
0 commit comments