|
1 | 1 | { |
2 | | - "name": "PowerShell", |
| 2 | + "name": "powershell", |
3 | 3 | "displayName": "PowerShell", |
4 | 4 | "version": "2.0.0", |
5 | 5 | "preview": true, |
|
307 | 307 | ], |
308 | 308 | "debuggers": [ |
309 | 309 | { |
310 | | - "type": "PowerShell", |
| 310 | + "type": "powershell", |
| 311 | + "label": "PowerShell", |
311 | 312 | "enableBreakpointsFor": { |
312 | 313 | "languageIds": [ |
313 | 314 | "powershell" |
|
327 | 328 | "label": "PowerShell: Launch Current File", |
328 | 329 | "description": "Launch current file (in active editor window) under debugger", |
329 | 330 | "body": { |
330 | | - "type": "PowerShell", |
331 | | - "request": "launch", |
332 | 331 | "name": "PowerShell Launch Current File", |
| 332 | + "type": "powershell", |
| 333 | + "request": "launch", |
333 | 334 | "script": "^\"\\${file}\"", |
334 | 335 | "args": [], |
335 | 336 | "cwd": "^\"\\${file}\"" |
|
339 | 340 | "label": "PowerShell: Launch Current File in Temporary Console", |
340 | 341 | "description": "Launch current file (in active editor window) under debugger in a temporary Integrated Console.", |
341 | 342 | "body": { |
342 | | - "type": "PowerShell", |
343 | | - "request": "launch", |
344 | 343 | "name": "PowerShell Launch Current File in Temporary Console", |
| 344 | + "type": "powershell", |
| 345 | + "request": "launch", |
345 | 346 | "script": "^\"\\${file}\"", |
346 | 347 | "args": [], |
347 | 348 | "cwd": "^\"\\${file}\"", |
|
352 | 353 | "label": "PowerShell: Launch Current File w/Args Prompt", |
353 | 354 | "description": "Launch current file (in active editor window) under debugger, prompting first for script arguments", |
354 | 355 | "body": { |
355 | | - "type": "PowerShell", |
356 | | - "request": "launch", |
357 | 356 | "name": "PowerShell Launch Current File w/Args Prompt", |
| 357 | + "type": "powershell", |
| 358 | + "request": "launch", |
358 | 359 | "script": "^\"\\${file}\"", |
359 | 360 | "args": [ |
360 | 361 | "^\"\\${command:SpecifyScriptArgs}\"" |
|
366 | 367 | "label": "PowerShell: Launch Script", |
367 | 368 | "description": "Launch specified script or path to script under debugger", |
368 | 369 | "body": { |
369 | | - "type": "PowerShell", |
370 | | - "request": "launch", |
371 | 370 | "name": "PowerShell Launch ${Script}", |
| 371 | + "type": "powershell", |
| 372 | + "request": "launch", |
372 | 373 | "script": "^\"\\${workspaceFolder}/${Script}\"", |
373 | 374 | "args": [], |
374 | 375 | "cwd": "^\"\\${workspaceFolder}\"" |
|
378 | 379 | "label": "PowerShell: Pester Tests", |
379 | 380 | "description": "Invokes Pester tests under debugger", |
380 | 381 | "body": { |
381 | | - "type": "PowerShell", |
382 | | - "request": "launch", |
383 | 382 | "name": "PowerShell Pester Tests", |
| 383 | + "type": "powershell", |
| 384 | + "request": "launch", |
384 | 385 | "script": "Invoke-Pester", |
385 | 386 | "args": [], |
386 | 387 | "cwd": "^\"\\${workspaceFolder}\"" |
|
390 | 391 | "label": "PowerShell: Attach to PowerShell Host Process", |
391 | 392 | "description": "Open host process picker to select process to attach debugger to", |
392 | 393 | "body": { |
393 | | - "type": "PowerShell", |
394 | | - "request": "attach", |
395 | 394 | "name": "PowerShell Attach to Host Process", |
| 395 | + "type": "powershell", |
| 396 | + "request": "attach", |
396 | 397 | "processId": "^\"\\${command:PickPSHostProcess}\"", |
397 | 398 | "runspaceId": 1 |
398 | 399 | } |
|
401 | 402 | "label": "PowerShell: Interactive Session", |
402 | 403 | "description": "Start interactive session (Debug Console) under debugger", |
403 | 404 | "body": { |
404 | | - "type": "PowerShell", |
405 | | - "request": "launch", |
406 | 405 | "name": "PowerShell Interactive Session", |
| 406 | + "type": "powershell", |
| 407 | + "request": "launch", |
407 | 408 | "cwd": "" |
408 | 409 | } |
409 | 410 | } |
|
456 | 457 | }, |
457 | 458 | "initialConfigurations": [ |
458 | 459 | { |
459 | | - "type": "PowerShell", |
460 | | - "request": "launch", |
461 | 460 | "name": "PowerShell Launch Current File", |
| 461 | + "type": "powershell", |
| 462 | + "request": "launch", |
462 | 463 | "script": "${file}", |
463 | 464 | "args": [], |
464 | 465 | "cwd": "${file}" |
465 | 466 | }, |
466 | 467 | { |
467 | | - "type": "PowerShell", |
468 | | - "request": "launch", |
469 | 468 | "name": "PowerShell Launch Current File in Temporary Console", |
| 469 | + "type": "powershell", |
| 470 | + "request": "launch", |
470 | 471 | "script": "${file}", |
471 | 472 | "args": [], |
472 | 473 | "cwd": "${file}", |
473 | 474 | "createTemporaryIntegratedConsole": true |
474 | 475 | }, |
475 | 476 | { |
476 | | - "type": "PowerShell", |
477 | | - "request": "launch", |
478 | 477 | "name": "PowerShell Launch Current File w/Args Prompt", |
| 478 | + "type": "powershell", |
| 479 | + "request": "launch", |
479 | 480 | "script": "${file}", |
480 | 481 | "args": [ |
481 | 482 | "${command:SpecifyScriptArgs}" |
482 | 483 | ], |
483 | 484 | "cwd": "${file}" |
484 | 485 | }, |
485 | 486 | { |
486 | | - "type": "PowerShell", |
487 | | - "request": "attach", |
488 | 487 | "name": "PowerShell Attach to Host Process", |
| 488 | + "type": "powershell", |
| 489 | + "request": "attach", |
489 | 490 | "processId": "${command:PickPSHostProcess}", |
490 | 491 | "runspaceId": 1 |
491 | 492 | }, |
492 | 493 | { |
493 | | - "type": "PowerShell", |
494 | | - "request": "launch", |
495 | 494 | "name": "PowerShell Interactive Session", |
| 495 | + "type": "powershell", |
| 496 | + "request": "launch", |
496 | 497 | "cwd": "" |
497 | 498 | } |
498 | 499 | ] |
|
0 commit comments