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