launch.json 12.5 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": [
22 23
				"${workspaceFolder}/out/**/*.js",
				"${workspaceFolder}/extensions/*/out/**/*.js"
24
			]
E
Erich Gamma 已提交
25
		},
J
Joao Moreno 已提交
26
		{
27
			"type": "pwa-chrome",
J
Joao Moreno 已提交
28
			"request": "attach",
29
			"name": "Attach to Shared Process",
C
Chuck Lantz 已提交
30
			"timeout": 30000,
R
Rob Lourens 已提交
31
			"port": 9222,
32
			"urlFilter": "*sharedProcess.html*",
J
João Moreno 已提交
33 34 35
			"presentation": {
				"hidden": true
			}
J
Joao Moreno 已提交
36
		},
R
Rob Lourens 已提交
37 38 39
		{
			"type": "node",
			"request": "attach",
40 41
			"name": "Attach to Search Process",
			"port": 5876,
R
Rob Lourens 已提交
42
			"outFiles": [
I
isidor 已提交
43
				"${workspaceFolder}/out/**/*.js"
44
			]
R
Rob Lourens 已提交
45
		},
J
Joao Moreno 已提交
46 47 48
		{
			"type": "node",
			"request": "attach",
49
			"name": "Attach to CLI Process",
J
Joao Moreno 已提交
50
			"port": 5874,
S
Sandeep Somavarapu 已提交
51
			"outFiles": [
I
isidor 已提交
52
				"${workspaceFolder}/out/**/*.js"
S
Sandeep Somavarapu 已提交
53
			]
J
Joao Moreno 已提交
54
		},
55 56 57 58
		{
			"type": "node",
			"request": "attach",
			"name": "Attach to Main Process",
C
Chuck Lantz 已提交
59
			"timeout": 30000,
60 61
			"port": 5875,
			"outFiles": [
I
isidor 已提交
62
				"${workspaceFolder}/out/**/*.js"
63 64 65 66
			],
			"presentation": {
				"hidden": true,
			}
67
		},
R
Ramya Achutha Rao 已提交
68 69 70 71 72 73
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "VS Code Emmet Tests",
			"runtimeExecutable": "${execPath}",
			"args": [
I
isidor 已提交
74 75 76
				"${workspaceFolder}/extensions/emmet/test-fixtures",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/emmet",
				"--extensionTestsPath=${workspaceFolder}/extensions/emmet/out/test"
R
Ramya Achutha Rao 已提交
77 78
			],
			"outFiles": [
I
isidor 已提交
79
				"${workspaceFolder}/out/**/*.js"
80 81 82 83 84
			],
			"presentation": {
				"group": "5_tests",
				"order": 6
			}
R
Ramya Achutha Rao 已提交
85
		},
J
Joao Moreno 已提交
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
		{
			"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 已提交
104 105 106
		{
			"type": "extensionHost",
			"request": "launch",
107
			"name": "VS Code API Tests (single folder)",
E
Erich Gamma 已提交
108 109
			"runtimeExecutable": "${execPath}",
			"args": [
C
Christof Marti 已提交
110
				// "${workspaceFolder}", // Uncomment for running out of sources.
I
isidor 已提交
111 112
				"${workspaceFolder}/extensions/vscode-api-tests/testWorkspace",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
113 114 115 116
				"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/singlefolder-tests"
			],
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
117 118 119 120 121
			],
			"presentation": {
				"group": "5_tests",
				"order": 3
			}
122 123 124 125 126 127 128
		},
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "VS Code API Tests (workspace)",
			"runtimeExecutable": "${execPath}",
			"args": [
B
Benjamin Pasero 已提交
129
				"${workspaceFolder}/extensions/vscode-api-tests/testworkspace.code-workspace",
130 131
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
				"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/workspace-tests"
E
Erich Gamma 已提交
132
			],
S
Sandeep Somavarapu 已提交
133
			"outFiles": [
I
isidor 已提交
134
				"${workspaceFolder}/out/**/*.js"
135 136 137 138 139
			],
			"presentation": {
				"group": "5_tests",
				"order": 4
			}
140
		},
R
rebornix 已提交
141 142 143 144 145 146 147 148 149 150 151 152 153 154
		{
			"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": {
C
Chuck Lantz 已提交
155
				"group": "5_tests",
R
rebornix 已提交
156 157 158
				"order": 6
			}
		},
M
Matt Bierner 已提交
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "VS Code Custom Editor Tests",
			"runtimeExecutable": "${execPath}",
			"args": [
				"${workspaceFolder}/extensions/vscode-custom-editor-tests/test-workspace",
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-custom-editor-tests",
				"--extensionTestsPath=${workspaceFolder}/extensions/vscode-custom-editor-tests/out/test"
			],
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
			"presentation": {
				"group": "5_tests",
				"order": 6
			}
		},
177
		{
178
			"type": "pwa-chrome",
179
			"request": "attach",
180
			"name": "Attach to VS Code",
181
			"browserAttachLocation": "workspace",
182 183
			"port": 9222,
			"perScriptSourcemaps": "yes"
184 185
		},
		{
186
			"type": "pwa-chrome",
187
			"request": "launch",
188
			"name": "Launch VS Code Internal",
189
			"windows": {
J
Joao Moreno 已提交
190
				"runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
191 192
			},
			"osx": {
I
isidor 已提交
193
				"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
194 195
			},
			"linux": {
I
isidor 已提交
196
				"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
197
			},
198
			"port": 9222,
J
Joao Moreno 已提交
199
			"timeout": 20000,
200
			"env": {
201 202
				"VSCODE_EXTHOST_WILL_SEND_SOCKET": null,
				"VSCODE_SKIP_PRELAUNCH": "1"
203
			},
204
			"cleanUp": "wholeBrowser",
205
			"urlFilter": "*workbench.html*",
206
			"runtimeArgs": [
207
				"--inspect=5875",
208
				"--no-cached-data",
209
			],
210
			"webRoot": "${workspaceFolder}",
211 212 213
			"cascadeTerminateToConfigurations": [
				"Attach to Extension Host"
			],
R
Rob Lourens 已提交
214
			"userDataDir": false,
215
			"pauseForSourceMap": false,
J
Joao Moreno 已提交
216 217 218
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
219
			"browserLaunchLocation": "workspace",
220 221 222
			"presentation": {
				"hidden": true,
			}
223
		},
224
		{
225 226
			"type": "node",
			"request": "launch",
J
João Moreno 已提交
227
			"name": "VS Code (Web)",
228
			"program": "${workspaceFolder}/resources/web/code-web.js",
229
			"presentation": {
J
João Moreno 已提交
230
				"group": "0_vscode",
231 232
				"order": 2
			}
233
		},
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
		{
			"type": "node",
			"request": "launch",
			"name": "Main Process",
			"runtimeExecutable": "${workspaceFolder}/scripts/code.sh",
			"windows": {
				"runtimeExecutable": "${workspaceFolder}/scripts/code.bat",
			},
			"runtimeArgs": [
				"--no-cached-data"
			],
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
			"presentation": {
				"group": "1_vscode",
				"order": 1
			}
		},
253
		{
254
			"type": "pwa-chrome",
255
			"request": "launch",
256 257
			"outFiles": [],
			"perScriptSourcemaps": "yes",
J
João Moreno 已提交
258
			"name": "VS Code (Web, Chrome)",
259
			"url": "http://localhost:8080",
260 261
			"preLaunchTask": "Run web",
			"presentation": {
J
João Moreno 已提交
262
				"group": "0_vscode",
263 264
				"order": 3
			}
265
		},
E
Eric Amodio 已提交
266 267 268
		{
			"type": "pwa-msedge",
			"request": "launch",
269 270
			"outFiles": [],
			"perScriptSourcemaps": "yes",
E
Eric Amodio 已提交
271 272 273 274 275 276 277 278 279
			"name": "VS Code (Web, Edge)",
			"url": "http://localhost:8080",
			"pauseForSourceMap": false,
			"preLaunchTask": "Run web",
			"presentation": {
				"group": "0_vscode",
				"order": 3
			}
		},
280 281 282 283
		{
			"type": "node",
			"request": "launch",
			"name": "Git Unit Tests",
I
isidor 已提交
284
			"program": "${workspaceFolder}/extensions/git/node_modules/mocha/bin/_mocha",
285
			"stopOnEntry": false,
I
isidor 已提交
286
			"cwd": "${workspaceFolder}/extensions/git",
287
			"outFiles": [
I
isidor 已提交
288
				"${workspaceFolder}/extensions/git/out/**/*.js"
289 290 291 292 293
			],
			"presentation": {
				"group": "5_tests",
				"order": 10
			}
M
Matt Bierner 已提交
294
		},
M
Martin Aeschlimann 已提交
295 296 297
		{
			"type": "node",
			"request": "launch",
C
Chuck Lantz 已提交
298
			"name": "HTML Server Unit Tests",
299
			"program": "${workspaceFolder}/extensions/html-language-features/server/test/index.js",
M
Martin Aeschlimann 已提交
300 301 302 303 304 305 306 307 308 309
			"stopOnEntry": false,
			"cwd": "${workspaceFolder}/extensions/html-language-features/server",
			"outFiles": [
				"${workspaceFolder}/extensions/html-language-features/server/out/**/*.js"
			],
			"presentation": {
				"group": "5_tests",
				"order": 10
			}
		},
C
Chuck Lantz 已提交
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
		{
			"type": "node",
			"request": "launch",
			"name": "CSS Server Unit Tests",
			"program": "${workspaceFolder}/extensions/css-language-features/server/test/index.js",
			"stopOnEntry": false,
			"cwd": "${workspaceFolder}/extensions/css-language-features/server",
			"outFiles": [
				"${workspaceFolder}/extensions/css-language-features/server/out/**/*.js"
			],
			"presentation": {
				"group": "5_tests",
				"order": 10
			}
		},
M
Matt Bierner 已提交
325 326 327
		{
			"type": "extensionHost",
			"request": "launch",
M
Matt Bierner 已提交
328
			"name": "Markdown Extension Tests",
M
Matt Bierner 已提交
329 330
			"runtimeExecutable": "${execPath}",
			"args": [
331
				"${workspaceFolder}/extensions/markdown-language-features/test-workspace",
332 333
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/markdown-language-features",
				"--extensionTestsPath=${workspaceFolder}/extensions/markdown-language-features/out/test"
M
Matt Bierner 已提交
334 335
			],
			"outFiles": [
336
				"${workspaceFolder}/extensions/markdown-language-features/out/**/*.js"
337 338 339 340 341
			],
			"presentation": {
				"group": "5_tests",
				"order": 7
			}
M
Matt Bierner 已提交
342
		},
343 344 345 346 347 348
		{
			"type": "extensionHost",
			"request": "launch",
			"name": "TypeScript Extension Tests",
			"runtimeExecutable": "${execPath}",
			"args": [
349
				"${workspaceFolder}/extensions/typescript-language-features/test-workspace",
350 351 352 353 354
				"--extensionDevelopmentPath=${workspaceFolder}/extensions/typescript-language-features",
				"--extensionTestsPath=${workspaceFolder}/extensions/typescript-language-features/out/test"
			],
			"outFiles": [
				"${workspaceFolder}/extensions/typescript-language-features/out/**/*.js"
355 356 357 358 359
			],
			"presentation": {
				"group": "5_tests",
				"order": 8
			}
360
		},
361
		{
362
			"type": "pwa-node",
363
			"request": "launch",
M
Matt Irvine 已提交
364
			"name": "Run Unit Tests",
365
			"program": "${workspaceFolder}/test/unit/electron/index.js",
I
isidor 已提交
366
			"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
367
			"windows": {
I
isidor 已提交
368
				"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
369 370
			},
			"linux": {
I
isidor 已提交
371
				"runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss"
372
			},
373
			"outputCapture": "std",
374
			"args": [
M
Matt Irvine 已提交
375
				"--remote-debugging-port=9222"
376
			],
I
isidor 已提交
377
			"cwd": "${workspaceFolder}",
378
			"outFiles": [
I
isidor 已提交
379
				"${workspaceFolder}/out/**/*.js"
380
			],
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
			"cascadeTerminateToConfigurations": [
				"Attach to VS Code"
			],
			"env": {
				"MOCHA_COLORS": "true"
			},
			"presentation": {
				"hidden": true
			}
		},
		{
			"type": "pwa-node",
			"request": "launch",
			"name": "Run Unit Tests For Current File",
			"program": "${workspaceFolder}/test/unit/electron/index.js",
			"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
			"windows": {
				"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
			},
			"linux": {
				"runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss"
			},
			"cascadeTerminateToConfigurations": [
				"Attach to VS Code"
			],
			"outputCapture": "std",
			"args": [
				"--remote-debugging-port=9222",
				"--run",
				"${relativeFile}"
			],
			"cwd": "${workspaceFolder}",
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
416 417
			"env": {
				"MOCHA_COLORS": "true"
418 419 420
			},
			"presentation": {
				"hidden": true
421
			}
422 423 424 425 426
		},
		{
			"type": "node",
			"request": "launch",
			"name": "Launch Smoke Test",
I
isidor 已提交
427 428
			"program": "${workspaceFolder}/test/smoke/out/main.js",
			"cwd": "${workspaceFolder}/test/smoke",
429 430 431 432
			"timeout": 240000,
			"port": 9999,
			"args": [
				"-l",
I
isidor 已提交
433
				"${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron"
434 435 436 437 438 439 440 441 442
			],
			"outFiles": [
				"${cwd}/out/**/*.js"
			],
			"env": {
				"NODE_ENV": "development",
				"VSCODE_DEV": "1",
				"VSCODE_CLI": "1"
			}
443 444 445 446 447 448 449 450 451
		},
		{
			"name": "Launch Built-in Extension",
			"type": "extensionHost",
			"request": "launch",
			"runtimeExecutable": "${execPath}",
			"args": [
				"--extensionDevelopmentPath=${workspaceRoot}/extensions/debug-auto-launch"
			]
452 453 454 455
		}
	],
	"compounds": [
		{
456
			"name": "VS Code",
457
			"stopAll": true,
458
			"configurations": [
459
				"Launch VS Code Internal",
J
Joao Moreno 已提交
460
				"Attach to Main Process",
461 462
				"Attach to Extension Host",
				"Attach to Shared Process",
463
			],
464
			"preLaunchTask": "Ensure Prelaunch Dependencies",
465
			"presentation": {
466
				"group": "0_vscode",
467 468
				"order": 1
			}
469 470 471 472
		},
		{
			"name": "Search and Renderer processes",
			"configurations": [
473
				"Launch VS Code Internal",
474
				"Attach to Search Process"
475 476 477 478 479
			],
			"presentation": {
				"group": "1_vscode",
				"order": 4
			}
480 481 482 483
		},
		{
			"name": "Renderer and Extension Host processes",
			"configurations": [
484
				"Launch VS Code Internal",
485
				"Attach to Extension Host"
486 487 488 489 490
			],
			"presentation": {
				"group": "1_vscode",
				"order": 3
			}
M
Matt Irvine 已提交
491 492 493 494 495 496
		},
		{
			"name": "Debug Unit Tests",
			"configurations": [
				"Attach to VS Code",
				"Run Unit Tests"
497 498 499 500 501
			],
			"presentation": {
				"group": "1_vscode",
				"order": 2
			}
502 503 504 505 506 507 508 509 510 511 512
		},
		{
			"name": "Debug Unit Tests (Current File)",
			"configurations": [
				"Attach to VS Code",
				"Run Unit Tests For Current File"
			],
			"presentation": {
				"group": "1_vscode",
				"order": 2
			}
513 514 515 516 517 518 519 520 521
		},
		{
			"name": "Launch VS Code",
			"stopAll": true,
			"configurations": [
				"Launch VS Code Internal",
			],
			"preLaunchTask": "Ensure Prelaunch Dependencies"
		},
E
Erich Gamma 已提交
522
	]
523
}