Skip to content

Commit 54fcec4

Browse files
committed
Fixes #24 - you can now use the launch.json args prop to send args to the script.
1 parent a1a805f commit 54fcec4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

examples/.vscode/launch.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"type": "PowerShell",
77
"request": "launch",
88
"program": "${file}",
9+
"args": [],
910
"cwd": "${file}"
1011
}
1112
]

package.json

+18
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@
127127
"type": "string",
128128
"description": "Absolute path to the PowerShell script to launch under the debugger."
129129
},
130+
"args": {
131+
"type": "array",
132+
"description": "Command line arguments to pass to the PowerShell script.",
133+
"items": {
134+
"type": "string"
135+
},
136+
"default": []
137+
},
130138
"cwd": {
131139
"type": "string",
132140
"description": "Absolute path to the working directory. Default is the current workspace.",
@@ -141,6 +149,7 @@
141149
"type": "PowerShell",
142150
"request": "launch",
143151
"program": "${file}",
152+
"args": [],
144153
"cwd": "${file}"
145154
}
146155
]
@@ -166,6 +175,14 @@
166175
"type": "string",
167176
"description": "Absolute path to the PowerShell script to launch under the debugger."
168177
},
178+
"args": {
179+
"type": "array",
180+
"description": "Command line arguments to pass to the PowerShell script.",
181+
"items": {
182+
"type": "string"
183+
},
184+
"default": []
185+
},
169186
"cwd": {
170187
"type": "string",
171188
"description": "Absolute path to the working directory. Default is the current workspace.",
@@ -180,6 +197,7 @@
180197
"type": "PowerShell x86",
181198
"request": "launch",
182199
"program": "${file}",
200+
"args": [],
183201
"cwd": "${file}"
184202
}
185203
]

0 commit comments

Comments
 (0)