Skip to content

Commit f0886cd

Browse files
rkeithhillTylerLeonhardt
authored andcommitted
Add label property to debug config, change pkg name to lowercase (#1746)
I don't think we should merge this to v1.x. I want to take the opportunity with the preview to make sure package.json name prop change to "powershell" doesn't cause any problems. This addresses issue caused w/LiveShare ext loaded and you try to debug. While this issue has been fixed by a mod to the next verson of VSCode, we should have our debugger configured properly. See microsoft/vscode#61649 Also, made debug snippet prop order consistent: name, type, request.
1 parent 0fb852c commit f0886cd

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

package.json

+27-26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "PowerShell",
2+
"name": "powershell",
33
"displayName": "PowerShell",
44
"version": "2.0.0",
55
"preview": true,
@@ -307,7 +307,8 @@
307307
],
308308
"debuggers": [
309309
{
310-
"type": "PowerShell",
310+
"type": "powershell",
311+
"label": "PowerShell",
311312
"enableBreakpointsFor": {
312313
"languageIds": [
313314
"powershell"
@@ -327,9 +328,9 @@
327328
"label": "PowerShell: Launch Current File",
328329
"description": "Launch current file (in active editor window) under debugger",
329330
"body": {
330-
"type": "PowerShell",
331-
"request": "launch",
332331
"name": "PowerShell Launch Current File",
332+
"type": "powershell",
333+
"request": "launch",
333334
"script": "^\"\\${file}\"",
334335
"args": [],
335336
"cwd": "^\"\\${file}\""
@@ -339,9 +340,9 @@
339340
"label": "PowerShell: Launch Current File in Temporary Console",
340341
"description": "Launch current file (in active editor window) under debugger in a temporary Integrated Console.",
341342
"body": {
342-
"type": "PowerShell",
343-
"request": "launch",
344343
"name": "PowerShell Launch Current File in Temporary Console",
344+
"type": "powershell",
345+
"request": "launch",
345346
"script": "^\"\\${file}\"",
346347
"args": [],
347348
"cwd": "^\"\\${file}\"",
@@ -352,9 +353,9 @@
352353
"label": "PowerShell: Launch Current File w/Args Prompt",
353354
"description": "Launch current file (in active editor window) under debugger, prompting first for script arguments",
354355
"body": {
355-
"type": "PowerShell",
356-
"request": "launch",
357356
"name": "PowerShell Launch Current File w/Args Prompt",
357+
"type": "powershell",
358+
"request": "launch",
358359
"script": "^\"\\${file}\"",
359360
"args": [
360361
"^\"\\${command:SpecifyScriptArgs}\""
@@ -366,9 +367,9 @@
366367
"label": "PowerShell: Launch Script",
367368
"description": "Launch specified script or path to script under debugger",
368369
"body": {
369-
"type": "PowerShell",
370-
"request": "launch",
371370
"name": "PowerShell Launch ${Script}",
371+
"type": "powershell",
372+
"request": "launch",
372373
"script": "^\"\\${workspaceFolder}/${Script}\"",
373374
"args": [],
374375
"cwd": "^\"\\${workspaceFolder}\""
@@ -378,9 +379,9 @@
378379
"label": "PowerShell: Pester Tests",
379380
"description": "Invokes Pester tests under debugger",
380381
"body": {
381-
"type": "PowerShell",
382-
"request": "launch",
383382
"name": "PowerShell Pester Tests",
383+
"type": "powershell",
384+
"request": "launch",
384385
"script": "Invoke-Pester",
385386
"args": [],
386387
"cwd": "^\"\\${workspaceFolder}\""
@@ -390,9 +391,9 @@
390391
"label": "PowerShell: Attach to PowerShell Host Process",
391392
"description": "Open host process picker to select process to attach debugger to",
392393
"body": {
393-
"type": "PowerShell",
394-
"request": "attach",
395394
"name": "PowerShell Attach to Host Process",
395+
"type": "powershell",
396+
"request": "attach",
396397
"processId": "^\"\\${command:PickPSHostProcess}\"",
397398
"runspaceId": 1
398399
}
@@ -401,9 +402,9 @@
401402
"label": "PowerShell: Interactive Session",
402403
"description": "Start interactive session (Debug Console) under debugger",
403404
"body": {
404-
"type": "PowerShell",
405-
"request": "launch",
406405
"name": "PowerShell Interactive Session",
406+
"type": "powershell",
407+
"request": "launch",
407408
"cwd": ""
408409
}
409410
}
@@ -456,43 +457,43 @@
456457
},
457458
"initialConfigurations": [
458459
{
459-
"type": "PowerShell",
460-
"request": "launch",
461460
"name": "PowerShell Launch Current File",
461+
"type": "powershell",
462+
"request": "launch",
462463
"script": "${file}",
463464
"args": [],
464465
"cwd": "${file}"
465466
},
466467
{
467-
"type": "PowerShell",
468-
"request": "launch",
469468
"name": "PowerShell Launch Current File in Temporary Console",
469+
"type": "powershell",
470+
"request": "launch",
470471
"script": "${file}",
471472
"args": [],
472473
"cwd": "${file}",
473474
"createTemporaryIntegratedConsole": true
474475
},
475476
{
476-
"type": "PowerShell",
477-
"request": "launch",
478477
"name": "PowerShell Launch Current File w/Args Prompt",
478+
"type": "powershell",
479+
"request": "launch",
479480
"script": "${file}",
480481
"args": [
481482
"${command:SpecifyScriptArgs}"
482483
],
483484
"cwd": "${file}"
484485
},
485486
{
486-
"type": "PowerShell",
487-
"request": "attach",
488487
"name": "PowerShell Attach to Host Process",
488+
"type": "powershell",
489+
"request": "attach",
489490
"processId": "${command:PickPSHostProcess}",
490491
"runspaceId": 1
491492
},
492493
{
493-
"type": "PowerShell",
494-
"request": "launch",
495494
"name": "PowerShell Interactive Session",
495+
"type": "powershell",
496+
"request": "launch",
496497
"cwd": ""
497498
}
498499
]

0 commit comments

Comments
 (0)