Skip to content

Commit 1754523

Browse files
committed
Replace program with script in launch.json.
"program" is left in place with updated description indicating the user should use the "script" property instead. This will allow existing PowerShell projects to continue work with newer versions of PSES. Any new launch.json files created with this updated extension will generate just "script". This means that if someone loads the project in an older version of the extension, it won't launch the debugger correctly. The question is, given how *easy* it is to update PSES, do we think this will be a big problem? I don't "think" so and I think the term "script" will make more sense to PowerShell users in the long run. That said, I'm totally OK with rejecting this PR if other folks do not agree. BTW there is a companion PR on PSES to implement the PSES side of this change.
1 parent e969d41 commit 1754523

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)