Skip to content

Commit c51efb8

Browse files
authored
Merge pull request #324 from rkeithhill/rkeithhill/change-launch-json-program
Replace program with script in launch.json.
2 parents e969d41 + 1754523 commit c51efb8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

examples/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "PowerShell",
66
"type": "PowerShell",
77
"request": "launch",
8-
"program": "${file}",
8+
"script": "${file}",
99
"args": [],
1010
"cwd": "${file}"
1111
}

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,14 @@
123123
"configurationAttributes": {
124124
"launch": {
125125
"required": [
126-
"program"
126+
"script"
127127
],
128128
"properties": {
129129
"program": {
130+
"type": "string",
131+
"description": "Deprecated. Please use the 'script' property instead to specify the absolute path to the PowerShell script to launch under the debugger."
132+
},
133+
"script": {
130134
"type": "string",
131135
"description": "Absolute path to the PowerShell script to launch under the debugger."
132136
},
@@ -151,7 +155,7 @@
151155
"name": "PowerShell",
152156
"type": "PowerShell",
153157
"request": "launch",
154-
"program": "${file}",
158+
"script": "${file}",
155159
"args": [],
156160
"cwd": "${file}"
157161
}

0 commit comments

Comments
 (0)