|
185 | 185 | "startSessionCommand": "PowerShell.StartDebugSession",
|
186 | 186 | "configurationSnippets": [
|
187 | 187 | {
|
188 |
| - "label": "PowerShell: Launch (current file)", |
| 188 | + "label": "PowerShell: Launch - Current File", |
189 | 189 | "description": "Launch current file (in active editor window) under debugger",
|
190 | 190 | "body": {
|
191 | 191 | "type": "PowerShell",
|
192 | 192 | "request": "launch",
|
193 |
| - "name": "PowerShell Launch (current file)", |
| 193 | + "name": "PS Launch - Current File", |
| 194 | + "script": "^\"\\${file}\"", |
| 195 | + "args": [], |
| 196 | + "cwd": "^\"\\${file}\"" |
| 197 | + } |
| 198 | + }, |
| 199 | + { |
| 200 | + "label": "PowerShell: Launch - Current File w/Args Prompt", |
| 201 | + "description": "Launch current file (in active editor window) under debugger, prompting first for script arguments", |
| 202 | + "body": { |
| 203 | + "type": "PowerShell", |
| 204 | + "request": "launch", |
| 205 | + "name": "PS Launch - Current File w/Args Prompt", |
194 | 206 | "script": "^\"\\${file}\"",
|
195 | 207 | "args": [],
|
196 | 208 | "cwd": "^\"\\${file}\""
|
197 | 209 | }
|
198 | 210 | },
|
199 | 211 | {
|
200 | 212 | "label": "PowerShell: Launch Script",
|
201 |
| - "description": "Launch specified script under debugger", |
| 213 | + "description": "Launch specified script or path to script under debugger", |
202 | 214 | "body": {
|
203 | 215 | "type": "PowerShell",
|
204 | 216 | "request": "launch",
|
205 |
| - "name": "PowerShell Launch (${Script})", |
| 217 | + "name": "PS Launch - ${Script}", |
206 | 218 | "script": "^\"\\${workspaceRoot}/${Script}\"",
|
207 | 219 | "args": [],
|
208 | 220 | "cwd": "^\"\\${workspaceRoot}\""
|
|
214 | 226 | "body": {
|
215 | 227 | "type": "PowerShell",
|
216 | 228 | "request": "launch",
|
217 |
| - "name": "PowerShell Pester Tests", |
| 229 | + "name": "PS Pester Tests", |
218 | 230 | "script": "Invoke-Pester",
|
219 | 231 | "args": [],
|
220 | 232 | "cwd": "^\"\\${workspaceRoot}\""
|
|
226 | 238 | "body": {
|
227 | 239 | "type": "PowerShell",
|
228 | 240 | "request": "attach",
|
229 |
| - "name": "PowerShell Attach to Host Process", |
| 241 | + "name": "PS Attach to Host Process", |
230 | 242 | "processId": "^\"\\${command:PickPSHostProcess}\"",
|
231 | 243 | "runspaceId": 1
|
232 | 244 | }
|
|
237 | 249 | "body": {
|
238 | 250 | "type": "PowerShell",
|
239 | 251 | "request": "launch",
|
240 |
| - "name": "PowerShell Interactive Session", |
| 252 | + "name": "PS Interactive Session", |
241 | 253 | "cwd": "^\"\\${workspaceRoot}\""
|
242 | 254 | }
|
243 | 255 | }
|
|
291 | 303 | {
|
292 | 304 | "type": "PowerShell",
|
293 | 305 | "request": "launch",
|
294 |
| - "name": "PowerShell Launch (current file)", |
| 306 | + "name": "PS Launch - Current File", |
295 | 307 | "script": "${file}",
|
296 | 308 | "args": [],
|
297 | 309 | "cwd": "${file}"
|
298 | 310 | },
|
| 311 | + { |
| 312 | + "type": "PowerShell", |
| 313 | + "request": "launch", |
| 314 | + "name": "PS Launch - Current File w/Args Prompt", |
| 315 | + "script": "${file}", |
| 316 | + "args": [ "${command:SpecifyScriptArgs}" ], |
| 317 | + "cwd": "${file}" |
| 318 | + }, |
299 | 319 | {
|
300 | 320 | "type": "PowerShell",
|
301 | 321 | "request": "attach",
|
302 |
| - "name": "PowerShell Attach to Host Process", |
| 322 | + "name": "PS Attach to Host Process", |
303 | 323 | "processId": "${command:PickPSHostProcess}",
|
304 | 324 | "runspaceId": 1
|
305 | 325 | },
|
306 | 326 | {
|
307 | 327 | "type": "PowerShell",
|
308 | 328 | "request": "launch",
|
309 |
| - "name": "PowerShell Interactive Session", |
| 329 | + "name": "PS Interactive Session", |
310 | 330 | "cwd": "${workspaceRoot}"
|
311 | 331 | }
|
312 | 332 | ]
|
|
0 commit comments