Skip to content

Commit

Permalink
Add label property to debug config, change pkg name to lowercase (Pow…
Browse files Browse the repository at this point in the history
…erShell#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.
  • Loading branch information
rkeithhill authored and TylerLeonhardt committed Mar 13, 2019
1 parent fb2a0af commit 9383a28
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "PowerShell",
"name": "powershell",
"displayName": "PowerShell",
"version": "1.11.0",
"publisher": "ms-vscode",
Expand Down Expand Up @@ -302,7 +302,8 @@
],
"debuggers": [
{
"type": "PowerShell",
"type": "powershell",
"label": "PowerShell",
"enableBreakpointsFor": {
"languageIds": [
"powershell"
Expand All @@ -322,9 +323,9 @@
"label": "PowerShell: Launch Current File",
"description": "Launch current file (in active editor window) under debugger",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"type": "powershell",
"request": "launch",
"script": "^\"\\${file}\"",
"args": [],
"cwd": "^\"\\${file}\""
Expand All @@ -334,9 +335,9 @@
"label": "PowerShell: Launch Current File in Temporary Console",
"description": "Launch current file (in active editor window) under debugger in a temporary Integrated Console.",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File in Temporary Console",
"type": "powershell",
"request": "launch",
"script": "^\"\\${file}\"",
"args": [],
"cwd": "^\"\\${file}\"",
Expand All @@ -347,9 +348,9 @@
"label": "PowerShell: Launch Current File w/Args Prompt",
"description": "Launch current file (in active editor window) under debugger, prompting first for script arguments",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File w/Args Prompt",
"type": "powershell",
"request": "launch",
"script": "^\"\\${file}\"",
"args": [
"^\"\\${command:SpecifyScriptArgs}\""
Expand All @@ -361,9 +362,9 @@
"label": "PowerShell: Launch Script",
"description": "Launch specified script or path to script under debugger",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch ${Script}",
"type": "powershell",
"request": "launch",
"script": "^\"\\${workspaceFolder}/${Script}\"",
"args": [],
"cwd": "^\"\\${workspaceFolder}\""
Expand All @@ -373,9 +374,9 @@
"label": "PowerShell: Pester Tests",
"description": "Invokes Pester tests under debugger",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Pester Tests",
"type": "powershell",
"request": "launch",
"script": "Invoke-Pester",
"args": [],
"cwd": "^\"\\${workspaceFolder}\""
Expand All @@ -385,9 +386,9 @@
"label": "PowerShell: Attach to PowerShell Host Process",
"description": "Open host process picker to select process to attach debugger to",
"body": {
"type": "PowerShell",
"request": "attach",
"name": "PowerShell Attach to Host Process",
"type": "powershell",
"request": "attach",
"processId": "^\"\\${command:PickPSHostProcess}\"",
"runspaceId": 1
}
Expand All @@ -396,9 +397,9 @@
"label": "PowerShell: Interactive Session",
"description": "Start interactive session (Debug Console) under debugger",
"body": {
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Interactive Session",
"type": "powershell",
"request": "launch",
"cwd": ""
}
}
Expand Down Expand Up @@ -451,43 +452,43 @@
},
"initialConfigurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"type": "powershell",
"request": "launch",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File in Temporary Console",
"type": "powershell",
"request": "launch",
"script": "${file}",
"args": [],
"cwd": "${file}",
"createTemporaryIntegratedConsole": true
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File w/Args Prompt",
"type": "powershell",
"request": "launch",
"script": "${file}",
"args": [
"${command:SpecifyScriptArgs}"
],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "attach",
"name": "PowerShell Attach to Host Process",
"type": "powershell",
"request": "attach",
"processId": "${command:PickPSHostProcess}",
"runspaceId": 1
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Interactive Session",
"type": "powershell",
"request": "launch",
"cwd": ""
}
]
Expand Down

0 comments on commit 9383a28

Please sign in to comment.