Skip to content

Commit 49248d9

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 3c44983 commit 49248d9

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": "1.11.0",
55
"publisher": "ms-vscode",
@@ -302,7 +302,8 @@
302302
],
303303
"debuggers": [
304304
{
305-
"type": "PowerShell",
305+
"type": "powershell",
306+
"label": "PowerShell",
306307
"enableBreakpointsFor": {
307308
"languageIds": [
308309
"powershell"
@@ -322,9 +323,9 @@
322323
"label": "PowerShell: Launch Current File",
323324
"description": "Launch current file (in active editor window) under debugger",
324325
"body": {
325-
"type": "PowerShell",
326-
"request": "launch",
327326
"name": "PowerShell Launch Current File",
327+
"type": "powershell",
328+
"request": "launch",
328329
"script": "^\"\\${file}\"",
329330
"args": [],
330331
"cwd": "^\"\\${file}\""
@@ -334,9 +335,9 @@
334335
"label": "PowerShell: Launch Current File in Temporary Console",
335336
"description": "Launch current file (in active editor window) under debugger in a temporary Integrated Console.",
336337
"body": {
337-
"type": "PowerShell",
338-
"request": "launch",
339338
"name": "PowerShell Launch Current File in Temporary Console",
339+
"type": "powershell",
340+
"request": "launch",
340341
"script": "^\"\\${file}\"",
341342
"args": [],
342343
"cwd": "^\"\\${file}\"",
@@ -347,9 +348,9 @@
347348
"label": "PowerShell: Launch Current File w/Args Prompt",
348349
"description": "Launch current file (in active editor window) under debugger, prompting first for script arguments",
349350
"body": {
350-
"type": "PowerShell",
351-
"request": "launch",
352351
"name": "PowerShell Launch Current File w/Args Prompt",
352+
"type": "powershell",
353+
"request": "launch",
353354
"script": "^\"\\${file}\"",
354355
"args": [
355356
"^\"\\${command:SpecifyScriptArgs}\""
@@ -361,9 +362,9 @@
361362
"label": "PowerShell: Launch Script",
362363
"description": "Launch specified script or path to script under debugger",
363364
"body": {
364-
"type": "PowerShell",
365-
"request": "launch",
366365
"name": "PowerShell Launch ${Script}",
366+
"type": "powershell",
367+
"request": "launch",
367368
"script": "^\"\\${workspaceFolder}/${Script}\"",
368369
"args": [],
369370
"cwd": "^\"\\${workspaceFolder}\""
@@ -373,9 +374,9 @@
373374
"label": "PowerShell: Pester Tests",
374375
"description": "Invokes Pester tests under debugger",
375376
"body": {
376-
"type": "PowerShell",
377-
"request": "launch",
378377
"name": "PowerShell Pester Tests",
378+
"type": "powershell",
379+
"request": "launch",
379380
"script": "Invoke-Pester",
380381
"args": [],
381382
"cwd": "^\"\\${workspaceFolder}\""
@@ -385,9 +386,9 @@
385386
"label": "PowerShell: Attach to PowerShell Host Process",
386387
"description": "Open host process picker to select process to attach debugger to",
387388
"body": {
388-
"type": "PowerShell",
389-
"request": "attach",
390389
"name": "PowerShell Attach to Host Process",
390+
"type": "powershell",
391+
"request": "attach",
391392
"processId": "^\"\\${command:PickPSHostProcess}\"",
392393
"runspaceId": 1
393394
}
@@ -396,9 +397,9 @@
396397
"label": "PowerShell: Interactive Session",
397398
"description": "Start interactive session (Debug Console) under debugger",
398399
"body": {
399-
"type": "PowerShell",
400-
"request": "launch",
401400
"name": "PowerShell Interactive Session",
401+
"type": "powershell",
402+
"request": "launch",
402403
"cwd": ""
403404
}
404405
}
@@ -451,43 +452,43 @@
451452
},
452453
"initialConfigurations": [
453454
{
454-
"type": "PowerShell",
455-
"request": "launch",
456455
"name": "PowerShell Launch Current File",
456+
"type": "powershell",
457+
"request": "launch",
457458
"script": "${file}",
458459
"args": [],
459460
"cwd": "${file}"
460461
},
461462
{
462-
"type": "PowerShell",
463-
"request": "launch",
464463
"name": "PowerShell Launch Current File in Temporary Console",
464+
"type": "powershell",
465+
"request": "launch",
465466
"script": "${file}",
466467
"args": [],
467468
"cwd": "${file}",
468469
"createTemporaryIntegratedConsole": true
469470
},
470471
{
471-
"type": "PowerShell",
472-
"request": "launch",
473472
"name": "PowerShell Launch Current File w/Args Prompt",
473+
"type": "powershell",
474+
"request": "launch",
474475
"script": "${file}",
475476
"args": [
476477
"${command:SpecifyScriptArgs}"
477478
],
478479
"cwd": "${file}"
479480
},
480481
{
481-
"type": "PowerShell",
482-
"request": "attach",
483482
"name": "PowerShell Attach to Host Process",
483+
"type": "powershell",
484+
"request": "attach",
484485
"processId": "${command:PickPSHostProcess}",
485486
"runspaceId": 1
486487
},
487488
{
488-
"type": "PowerShell",
489-
"request": "launch",
490489
"name": "PowerShell Interactive Session",
490+
"type": "powershell",
491+
"request": "launch",
491492
"cwd": ""
492493
}
493494
]

0 commit comments

Comments
 (0)