You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow debugging in interactive session with no dir change
Fix#1330
This PR depends on a corresponding PR to PSES to have it handle
null/empty string differently in the non-temp console case.
For the generateLaunchConfig case, we now pass "" as cwd to PSES.
That tells PSES to not change the directory *if* we aren't running
in a temp console. If we are in a temp console, then use old logic to
set working dir.
Update "PowerShell Interactive Session" debug config to tell PSES
to not change the working dir.
Remove "program" field from launch config. This has been marked
deprecated for over a year now.
Change refs in ${workspaceRoot} to ${workpaceFolder} to work
better in a multi-workspace environment.
Remove unused imports/field in DebugSession.ts.
Copy file name to clipboardExpand all lines: package.json
+7-11
Original file line number
Diff line number
Diff line change
@@ -257,9 +257,9 @@
257
257
"type": "PowerShell",
258
258
"request": "launch",
259
259
"name": "PowerShell Launch ${Script}",
260
-
"script": "^\"\\${workspaceRoot}/${Script}\"",
260
+
"script": "^\"\\${workspaceFolder}/${Script}\"",
261
261
"args": [],
262
-
"cwd": "^\"\\${workspaceRoot}\""
262
+
"cwd": "^\"\\${workspaceFolder}\""
263
263
}
264
264
},
265
265
{
@@ -271,7 +271,7 @@
271
271
"name": "PowerShell Pester Tests",
272
272
"script": "Invoke-Pester",
273
273
"args": [],
274
-
"cwd": "^\"\\${workspaceRoot}\""
274
+
"cwd": "^\"\\${workspaceFolder}\""
275
275
}
276
276
},
277
277
{
@@ -292,17 +292,13 @@
292
292
"type": "PowerShell",
293
293
"request": "launch",
294
294
"name": "PowerShell Interactive Session",
295
-
"cwd": "^\"\\${workspaceRoot}\""
295
+
"cwd": ""
296
296
}
297
297
}
298
298
],
299
299
"configurationAttributes": {
300
300
"launch": {
301
301
"properties": {
302
-
"program": {
303
-
"type": "string",
304
-
"description": "Deprecated. Please use the 'script' property instead to specify the absolute path to the PowerShell script to launch under the debugger."
305
-
},
306
302
"script": {
307
303
"type": "string",
308
304
"description": "Optional: Absolute path to the PowerShell script to launch under the debugger."
@@ -317,8 +313,8 @@
317
313
},
318
314
"cwd": {
319
315
"type": "string",
320
-
"description": "Absolute path to the working directory. Default is the current workspace.",
321
-
"default": "${workspaceRoot}"
316
+
"description": "Absolute path to the working directory. Default is the current workspace folder.",
0 commit comments