Skip to content

Commit 2bcc084

Browse files
committed
Merge pull request #90 from rkeithhill/rkeithhill/is24-config-scriptargs
Fixes #24 - you can now use the launch.json args prop to send args to…
2 parents a1a805f + bf83a3f commit 2bcc084

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
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-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"key": "ctrl+K ctrl+f",
7171
"when": "editorTextFocus && editorLangId == 'powershell'"
7272
}
73-
7473
],
7574
"commands": [
7675
{
@@ -127,6 +126,14 @@
127126
"type": "string",
128127
"description": "Absolute path to the PowerShell script to launch under the debugger."
129128
},
129+
"args": {
130+
"type": "array",
131+
"description": "Command line arguments to pass to the PowerShell script.",
132+
"items": {
133+
"type": "string"
134+
},
135+
"default": []
136+
},
130137
"cwd": {
131138
"type": "string",
132139
"description": "Absolute path to the working directory. Default is the current workspace.",
@@ -141,6 +148,7 @@
141148
"type": "PowerShell",
142149
"request": "launch",
143150
"program": "${file}",
151+
"args": [],
144152
"cwd": "${file}"
145153
}
146154
]
@@ -166,6 +174,14 @@
166174
"type": "string",
167175
"description": "Absolute path to the PowerShell script to launch under the debugger."
168176
},
177+
"args": {
178+
"type": "array",
179+
"description": "Command line arguments to pass to the PowerShell script.",
180+
"items": {
181+
"type": "string"
182+
},
183+
"default": []
184+
},
169185
"cwd": {
170186
"type": "string",
171187
"description": "Absolute path to the working directory. Default is the current workspace.",
@@ -180,6 +196,7 @@
180196
"type": "PowerShell x86",
181197
"request": "launch",
182198
"program": "${file}",
199+
"args": [],
183200
"cwd": "${file}"
184201
}
185202
]

0 commit comments

Comments
 (0)