launch.json 9.8 KB
Newer Older
E
Erich Gamma 已提交
1 2 3
{
	"version": "0.1.0",
	"configurations": [
4 5 6 7
		{
			"type": "node",
			"request": "launch",
			"name": "Gulp Build",
I
isidor 已提交
8
			"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
9 10
			"stopOnEntry": true,
			"args": [
E
Erich Gamma 已提交
11
				"hygiene"
I
isidor 已提交
12
			]
13
		},
E
Erich Gamma 已提交
14 15 16
		{
			"type": "node",
			"request": "attach",
17
			"restart": true,
18
			"name": "Attach to Extension Host",
D
Daniel Imms 已提交
19
			"timeout": 30000,
20
			"port": 5870,
S
Sandeep Somavarapu 已提交
21
			"outFiles": [
I
isidor 已提交
22
				"${workspaceFolder}/out/**/*.js"
J
João Moreno 已提交
23 24 25 26
			],
			"presentation": {
				"hidden": true
			}
E
Erich Gamma 已提交
27
		},
J
Joao Moreno 已提交
28
		{
29
			"type": "pwa-chrome",
J
Joao Moreno 已提交
30
			"request": "attach",
31
			"name": "Attach to Shared Process",
R
Rob Lourens 已提交
32
			"port": 9222,
33
			"urlFilter": "*sharedProcess.html*",
J
João Moreno 已提交
34 35 36
			"presentation": {
				"hidden": true
			}
J
Joao Moreno 已提交
37
		},
R
Rob Lourens 已提交
38 39 40
		{
			"type": "node",
			"request": "attach",
41 42
			"name": "Attach to Search Process",
			"port": 5876,
R
Rob Lourens 已提交
43
			"outFiles": [
I
isidor 已提交
44
				"${workspaceFolder}/out/**/*.js"
45 46 47 48
			],
			"presentation": {
				"hidden": true,
			}
R
Rob Lourens 已提交
49
		},
J
Joao Moreno 已提交
50 51 52
		{
			"type": "node",
			"request": "attach",
53
			"name": "Attach to CLI Process",
J
Joao Moreno 已提交
54
			"port": 5874,
S
Sandeep Somavarapu 已提交
55
			"outFiles": [
I
isidor 已提交
56
				"${workspaceFolder}/out/**/*.js"
S
Sandeep Somavarapu 已提交
57
			]
J
Joao Moreno 已提交
58
		},
59 60 61 62 63 64
		{
			"type": "node",
			"request": "attach",
			"name": "Attach to Main Process",
			"port": 5875,
			"outFiles": [
I
isidor 已提交
65
				"${workspaceFolder}/out/**/*.js"
66 67 68 69
			],
			"presentation": {
				"hidden": true,
			}
70
		},
R
Ramya Achutha Rao 已提交
71 72 73 74 75 76
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "VS Code Emmet Tests",
			"runtimeExecutable": "${execPath}",
			"args": [
I
isidor 已提交
77 78 79
				"${workspaceFolder}/extensions/emmet/test-fixtures",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/emmet",
				"--extensionTestsPath=${workspaceFolder}/extensions/emmet/out/test"
R
Ramya Achutha Rao 已提交
80 81
			],
			"outFiles": [
I
isidor 已提交
82
				"${workspaceFolder}/out/**/*.js"
83 84 85 86 87
			],
			"presentation": {
				"group": "5_tests",
				"order": 6
			}
R
Ramya Achutha Rao 已提交
88
		},
J
Joao Moreno 已提交
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "VS Code Git Tests",
			"runtimeExecutable": "${execPath}",
			"args": [
				"/tmp/my4g9l",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/git",
				"--extensionTestsPath=${workspaceFolder}/extensions/git/out/test"
			],
			"outFiles": [
				"${workspaceFolder}/extensions/git/out/**/*.js"
			],
			"presentation": {
				"group": "5_tests",
				"order": 6
			}
		},
E
Erich Gamma 已提交
107 108 109
		{
			"type": "extensionHost",
			"request": "launch",
110
			"name": "VS Code API Tests (single folder)",
E
Erich Gamma 已提交
111 112
			"runtimeExecutable": "${execPath}",
			"args": [
C
Christof Marti 已提交
113
				// "${workspaceFolder}", // Uncomment for running out of sources.
I
isidor 已提交
114 115
				"${workspaceFolder}/extensions/vscode-api-tests/testWorkspace",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
116 117 118 119
				"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/singlefolder-tests"
			],
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
120 121 122 123 124
			],
			"presentation": {
				"group": "5_tests",
				"order": 3
			}
125 126 127 128 129 130 131
		},
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "VS Code API Tests (workspace)",
			"runtimeExecutable": "${execPath}",
			"args": [
B
Benjamin Pasero 已提交
132
				"${workspaceFolder}/extensions/vscode-api-tests/testworkspace.code-workspace",
133 134
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
				"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/workspace-tests"
E
Erich Gamma 已提交
135
			],
S
Sandeep Somavarapu 已提交
136
			"outFiles": [
I
isidor 已提交
137
				"${workspaceFolder}/out/**/*.js"
138 139 140 141 142
			],
			"presentation": {
				"group": "5_tests",
				"order": 4
			}
143
		},
144 145 146
		{
			"type": "extensionHost",
			"request": "launch",
147
			"name": "VS Code Tokenizer Tests",
148 149
			"runtimeExecutable": "${execPath}",
			"args": [
I
isidor 已提交
150 151 152
				"${workspaceFolder}/extensions/vscode-colorize-tests/test",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-colorize-tests",
				"--extensionTestsPath=${workspaceFolder}/extensions/vscode-colorize-tests/out"
153
			],
S
Sandeep Somavarapu 已提交
154
			"outFiles": [
I
isidor 已提交
155
				"${workspaceFolder}/out/**/*.js"
156 157 158 159 160
			],
			"presentation": {
				"group": "5_tests",
				"order": 5
			}
161
		},
R
rebornix 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "VS Code Notebook Tests",
			"runtimeExecutable": "${execPath}",
			"args": [
				"${workspaceFolder}/extensions/vscode-notebook-tests/test",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-notebook-tests",
				"--extensionTestsPath=${workspaceFolder}/extensions/vscode-notebook-tests/out"
			],
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
			"presentation": {
				"group": "6_tests",
				"order": 6
			}
		},
180 181 182
		{
			"type": "chrome",
			"request": "attach",
183
			"name": "Attach to VS Code",
R
Rob Lourens 已提交
184
			"port": 9222
185 186
		},
		{
187
			"type": "pwa-chrome",
188
			"request": "launch",
189
			"name": "Launch VS Code",
190
			"browserLaunchLocation": "workspace",
191
			"windows": {
J
Joao Moreno 已提交
192
				"runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
193 194
			},
			"osx": {
I
isidor 已提交
195
				"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
196 197
			},
			"linux": {
I
isidor 已提交
198
				"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
199
			},
200
			"port": 9222,
J
Joao Moreno 已提交
201
			"timeout": 20000,
202 203 204
			"env": {
				"VSCODE_EXTHOST_WILL_SEND_SOCKET": null
			},
R
Rob Lourens 已提交
205
			"breakOnLoad": false,
206
			"urlFilter": "*workbench.html*",
207
			"runtimeArgs": [
208
				"--inspect=5875",
209
				"--no-cached-data",
210
			],
211 212
			"webRoot": "${workspaceFolder}",
			// Settings for js-debug:
R
Rob Lourens 已提交
213
			"userDataDir": false,
214
			"pauseForSourceMap": false,
J
Joao Moreno 已提交
215 216 217
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
218
			"browserLaunchLocation": "workspace"
219
		},
220
		{
221 222
			"type": "node",
			"request": "launch",
J
João Moreno 已提交
223
			"name": "VS Code (Web)",
224 225 226 227
			"runtimeExecutable": "yarn",
			"runtimeArgs": [
				"web"
			],
228
			"presentation": {
J
João Moreno 已提交
229
				"group": "0_vscode",
230 231
				"order": 2
			}
232
		},
233 234 235
		{
			"type": "chrome",
			"request": "launch",
J
João Moreno 已提交
236
			"name": "VS Code (Web, Chrome)",
237
			"url": "http://localhost:8080",
238 239
			"preLaunchTask": "Run web",
			"presentation": {
J
João Moreno 已提交
240
				"group": "0_vscode",
241 242
				"order": 3
			}
243
		},
244 245 246 247
		{
			"type": "node",
			"request": "launch",
			"name": "Git Unit Tests",
I
isidor 已提交
248
			"program": "${workspaceFolder}/extensions/git/node_modules/mocha/bin/_mocha",
249
			"stopOnEntry": false,
I
isidor 已提交
250
			"cwd": "${workspaceFolder}/extensions/git",
251
			"outFiles": [
I
isidor 已提交
252
				"${workspaceFolder}/extensions/git/out/**/*.js"
253 254 255 256 257
			],
			"presentation": {
				"group": "5_tests",
				"order": 10
			}
M
Matt Bierner 已提交
258
		},
M
Martin Aeschlimann 已提交
259 260 261 262
		{
			"type": "node",
			"request": "launch",
			"name": "HTML Unit Tests",
263
			"program": "${workspaceFolder}/extensions/html-language-features/server/test/index.js",
M
Martin Aeschlimann 已提交
264 265 266 267 268 269 270 271 272 273
			"stopOnEntry": false,
			"cwd": "${workspaceFolder}/extensions/html-language-features/server",
			"outFiles": [
				"${workspaceFolder}/extensions/html-language-features/server/out/**/*.js"
			],
			"presentation": {
				"group": "5_tests",
				"order": 10
			}
		},
M
Matt Bierner 已提交
274 275 276
		{
			"type": "extensionHost",
			"request": "launch",
M
Matt Bierner 已提交
277
			"name": "Markdown Extension Tests",
M
Matt Bierner 已提交
278 279
			"runtimeExecutable": "${execPath}",
			"args": [
280 281 282
				"${workspaceFolder}/extensions/markdown-language-features/test-fixtures",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/markdown-language-features",
				"--extensionTestsPath=${workspaceFolder}/extensions/markdown-language-features/out/test"
M
Matt Bierner 已提交
283 284
			],
			"outFiles": [
285
				"${workspaceFolder}/extensions/markdown-language-features/out/**/*.js"
286 287 288 289 290
			],
			"presentation": {
				"group": "5_tests",
				"order": 7
			}
M
Matt Bierner 已提交
291
		},
292 293 294 295 296 297 298 299 300 301 302 303
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "TypeScript Extension Tests",
			"runtimeExecutable": "${execPath}",
			"args": [
				"${workspaceFolder}/extensions/typescript-language-features/test-fixtures",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/typescript-language-features",
				"--extensionTestsPath=${workspaceFolder}/extensions/typescript-language-features/out/test"
			],
			"outFiles": [
				"${workspaceFolder}/extensions/typescript-language-features/out/**/*.js"
304 305 306 307 308
			],
			"presentation": {
				"group": "5_tests",
				"order": 8
			}
309
		},
310 311 312
		{
			"type": "node",
			"request": "launch",
M
Matt Irvine 已提交
313
			"name": "Run Unit Tests",
314
			"program": "${workspaceFolder}/test/unit/electron/index.js",
I
isidor 已提交
315
			"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
316
			"windows": {
I
isidor 已提交
317
				"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
318 319
			},
			"linux": {
I
isidor 已提交
320
				"runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss"
321
			},
322
			"outputCapture": "std",
323
			"args": [
M
Matt Irvine 已提交
324
				"--remote-debugging-port=9222"
325
			],
I
isidor 已提交
326
			"cwd": "${workspaceFolder}",
327
			"outFiles": [
I
isidor 已提交
328
				"${workspaceFolder}/out/**/*.js"
329 330 331
			],
			"env": {
				"MOCHA_COLORS": "true"
332 333 334
			},
			"presentation": {
				"hidden": true
335
			}
336 337 338 339 340
		},
		{
			"type": "node",
			"request": "launch",
			"name": "Launch Smoke Test",
I
isidor 已提交
341 342
			"program": "${workspaceFolder}/test/smoke/out/main.js",
			"cwd": "${workspaceFolder}/test/smoke",
343 344 345 346
			"timeout": 240000,
			"port": 9999,
			"args": [
				"-l",
I
isidor 已提交
347
				"${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron"
348 349 350 351 352 353 354 355 356
			],
			"outFiles": [
				"${cwd}/out/**/*.js"
			],
			"env": {
				"NODE_ENV": "development",
				"VSCODE_DEV": "1",
				"VSCODE_CLI": "1"
			}
357 358 359 360 361 362 363 364 365
		},
		{
			"name": "Launch Built-in Extension",
			"type": "extensionHost",
			"request": "launch",
			"runtimeExecutable": "${execPath}",
			"args": [
				"--extensionDevelopmentPath=${workspaceRoot}/extensions/debug-auto-launch"
			]
366 367 368 369
		}
	],
	"compounds": [
		{
370
			"name": "VS Code",
371 372
			"configurations": [
				"Launch VS Code",
J
Joao Moreno 已提交
373
				"Attach to Main Process",
374 375
				"Attach to Extension Host",
				"Attach to Shared Process",
376 377
			],
			"presentation": {
378
				"group": "0_vscode",
379 380
				"order": 1
			}
381 382 383 384 385 386
		},
		{
			"name": "Search and Renderer processes",
			"configurations": [
				"Launch VS Code",
				"Attach to Search Process"
387 388 389 390 391
			],
			"presentation": {
				"group": "1_vscode",
				"order": 4
			}
392 393 394 395 396 397
		},
		{
			"name": "Renderer and Extension Host processes",
			"configurations": [
				"Launch VS Code",
				"Attach to Extension Host"
398 399 400 401 402
			],
			"presentation": {
				"group": "1_vscode",
				"order": 3
			}
M
Matt Irvine 已提交
403 404 405 406 407 408
		},
		{
			"name": "Debug Unit Tests",
			"configurations": [
				"Attach to VS Code",
				"Run Unit Tests"
409 410 411 412 413 414
			],
			"presentation": {
				"group": "1_vscode",
				"order": 2
			}
		}
E
Erich Gamma 已提交
415
	]
416
}