|
27 | 27 | }, |
28 | 28 | "main": "./out/src/main", |
29 | 29 | "activationEvents": [ |
| 30 | + "onDebugInitialConfigurations", |
30 | 31 | "onDebugResolve:powershell", |
31 | 32 | "onLanguage:powershell", |
32 | 33 | "onCommand:PowerShell.NewProjectFromTemplate", |
|
70 | 71 | "test": "node ./node_modules/vscode/bin/test" |
71 | 72 | }, |
72 | 73 | "contributes": { |
| 74 | + "breakpoints": [ |
| 75 | + { |
| 76 | + "language": "powershell" |
| 77 | + } |
| 78 | + ], |
73 | 79 | "viewsContainers": { |
74 | 80 | "activitybar": [ |
75 | 81 | { |
|
315 | 321 | { |
316 | 322 | "type": "PowerShell", |
317 | 323 | "label": "PowerShell", |
318 | | - "enableBreakpointsFor": { |
319 | | - "languageIds": [ |
320 | | - "powershell" |
321 | | - ] |
322 | | - }, |
323 | 324 | "program": "./out/src/debugAdapter.js", |
324 | 325 | "runtime": "node", |
325 | 326 | "variables": { |
|
333 | 334 | "configurationSnippets": [ |
334 | 335 | { |
335 | 336 | "label": "PowerShell: Launch Current File", |
336 | | - "description": "Launch current file (in active editor window) under debugger", |
| 337 | + "description": "Launch and debug the file in the currently active editor window", |
337 | 338 | "body": { |
338 | 339 | "name": "PowerShell Launch Current File", |
339 | 340 | "type": "PowerShell", |
340 | 341 | "request": "launch", |
341 | 342 | "script": "^\"\\${file}\"", |
342 | | - "args": [], |
343 | | - "cwd": "^\"\\${file}\"" |
344 | | - } |
345 | | - }, |
346 | | - { |
347 | | - "label": "PowerShell: Launch Current File in Temporary Console", |
348 | | - "description": "Launch current file (in active editor window) under debugger in a temporary Integrated Console.", |
349 | | - "body": { |
350 | | - "name": "PowerShell Launch Current File in Temporary Console", |
351 | | - "type": "PowerShell", |
352 | | - "request": "launch", |
353 | | - "script": "^\"\\${file}\"", |
354 | | - "args": [], |
355 | | - "cwd": "^\"\\${file}\"", |
356 | | - "createTemporaryIntegratedConsole": true |
357 | | - } |
358 | | - }, |
359 | | - { |
360 | | - "label": "PowerShell: Launch Current File w/Args Prompt", |
361 | | - "description": "Launch current file (in active editor window) under debugger, prompting first for script arguments", |
362 | | - "body": { |
363 | | - "name": "PowerShell Launch Current File w/Args Prompt", |
364 | | - "type": "PowerShell", |
365 | | - "request": "launch", |
366 | | - "script": "^\"\\${file}\"", |
367 | | - "args": [ |
368 | | - "^\"\\${command:SpecifyScriptArgs}\"" |
369 | | - ], |
370 | 343 | "cwd": "^\"\\${file}\"" |
371 | 344 | } |
372 | 345 | }, |
373 | 346 | { |
374 | 347 | "label": "PowerShell: Launch Script", |
375 | | - "description": "Launch specified script or path to script under debugger", |
| 348 | + "description": "Launch and debug the specified file or command", |
376 | 349 | "body": { |
377 | | - "name": "PowerShell Launch ${Script}", |
| 350 | + "name": "PowerShell Launch Script", |
378 | 351 | "type": "PowerShell", |
379 | 352 | "request": "launch", |
380 | | - "script": "^\"\\${workspaceFolder}/${Script}\"", |
381 | | - "args": [], |
| 353 | + "script": "^\"enter path or command to execute e.g.: \\${workspaceFolder}/src/foo.ps1 or Invoke-Pester\"", |
382 | 354 | "cwd": "^\"\\${workspaceFolder}\"" |
383 | 355 | } |
384 | 356 | }, |
385 | 357 | { |
386 | | - "label": "PowerShell: Pester Tests", |
387 | | - "description": "Invokes Pester tests under debugger", |
| 358 | + "label": "PowerShell: Interactive Session", |
| 359 | + "description": "Debug commands executed from the Integrated Console", |
388 | 360 | "body": { |
389 | | - "name": "PowerShell Pester Tests", |
| 361 | + "name": "PowerShell Interactive Session", |
390 | 362 | "type": "PowerShell", |
391 | 363 | "request": "launch", |
392 | | - "script": "Invoke-Pester", |
393 | | - "args": [], |
394 | | - "cwd": "^\"\\${workspaceFolder}\"" |
| 364 | + "cwd": "" |
395 | 365 | } |
396 | 366 | }, |
397 | 367 | { |
398 | 368 | "label": "PowerShell: Attach to PowerShell Host Process", |
399 | | - "description": "Open host process picker to select process to attach debugger to", |
| 369 | + "description": "Attach the debugger to a running PowerShell Host Process", |
400 | 370 | "body": { |
401 | 371 | "name": "PowerShell Attach to Host Process", |
402 | 372 | "type": "PowerShell", |
403 | 373 | "request": "attach", |
404 | 374 | "runspaceId": 1 |
405 | 375 | } |
406 | 376 | }, |
407 | | - { |
408 | | - "label": "PowerShell: Interactive Session", |
409 | | - "description": "Start interactive session (Debug Console) under debugger", |
410 | | - "body": { |
411 | | - "name": "PowerShell Interactive Session", |
412 | | - "type": "PowerShell", |
413 | | - "request": "launch", |
414 | | - "cwd": "" |
415 | | - } |
416 | | - }, |
417 | 377 | { |
418 | 378 | "label": "PowerShell: Attach Interactive Session Runspace", |
419 | 379 | "description": "Open runspace picker to select runspace to attach debugger to", |
|
434 | 394 | }, |
435 | 395 | "args": { |
436 | 396 | "type": "array", |
437 | | - "description": "Command line arguments to pass to the PowerShell script.", |
| 397 | + "description": "Command line arguments to pass to the PowerShell script. Specify \"${command:SpecifyScriptArgs}\" if you want to be prompted for the args.", |
438 | 398 | "items": { |
439 | 399 | "type": "string" |
440 | 400 | }, |
|
484 | 444 | } |
485 | 445 | } |
486 | 446 | }, |
487 | | - "initialConfigurations": [ |
488 | | - { |
489 | | - "name": "PowerShell Launch Current File", |
490 | | - "type": "PowerShell", |
491 | | - "request": "launch", |
492 | | - "script": "${file}", |
493 | | - "args": [], |
494 | | - "cwd": "${file}" |
495 | | - }, |
496 | | - { |
497 | | - "name": "PowerShell Launch Current File in Temporary Console", |
498 | | - "type": "PowerShell", |
499 | | - "request": "launch", |
500 | | - "script": "${file}", |
501 | | - "args": [], |
502 | | - "cwd": "${file}", |
503 | | - "createTemporaryIntegratedConsole": true |
504 | | - }, |
505 | | - { |
506 | | - "name": "PowerShell Launch Current File w/Args Prompt", |
507 | | - "type": "PowerShell", |
508 | | - "request": "launch", |
509 | | - "script": "${file}", |
510 | | - "args": [ |
511 | | - "${command:SpecifyScriptArgs}" |
512 | | - ], |
513 | | - "cwd": "${file}" |
514 | | - }, |
515 | | - { |
516 | | - "name": "PowerShell Attach to Host Process", |
517 | | - "type": "PowerShell", |
518 | | - "request": "attach" |
519 | | - }, |
520 | | - { |
521 | | - "name": "PowerShell Interactive Session", |
522 | | - "type": "PowerShell", |
523 | | - "request": "launch", |
524 | | - "cwd": "" |
525 | | - }, |
526 | | - { |
527 | | - "name": "PowerShell Attach Interactive Session Runspace", |
528 | | - "type": "PowerShell", |
529 | | - "request": "attach", |
530 | | - "processId": "current" |
531 | | - } |
532 | | - ] |
| 447 | + "initialConfigurations": [] |
533 | 448 | } |
534 | 449 | ], |
535 | 450 | "configuration": { |
|
0 commit comments