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 (#1397)
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
@@ -262,9 +262,9 @@
262
262
"type": "PowerShell",
263
263
"request": "launch",
264
264
"name": "PowerShell Launch ${Script}",
265
-
"script": "^\"\\${workspaceRoot}/${Script}\"",
265
+
"script": "^\"\\${workspaceFolder}/${Script}\"",
266
266
"args": [],
267
-
"cwd": "^\"\\${workspaceRoot}\""
267
+
"cwd": "^\"\\${workspaceFolder}\""
268
268
}
269
269
},
270
270
{
@@ -276,7 +276,7 @@
276
276
"name": "PowerShell Pester Tests",
277
277
"script": "Invoke-Pester",
278
278
"args": [],
279
-
"cwd": "^\"\\${workspaceRoot}\""
279
+
"cwd": "^\"\\${workspaceFolder}\""
280
280
}
281
281
},
282
282
{
@@ -297,17 +297,13 @@
297
297
"type": "PowerShell",
298
298
"request": "launch",
299
299
"name": "PowerShell Interactive Session",
300
-
"cwd": "^\"\\${workspaceRoot}\""
300
+
"cwd": ""
301
301
}
302
302
}
303
303
],
304
304
"configurationAttributes": {
305
305
"launch": {
306
306
"properties": {
307
-
"program": {
308
-
"type": "string",
309
-
"description": "Deprecated. Please use the 'script' property instead to specify the absolute path to the PowerShell script to launch under the debugger."
310
-
},
311
307
"script": {
312
308
"type": "string",
313
309
"description": "Optional: Absolute path to the PowerShell script to launch under the debugger."
@@ -322,8 +318,8 @@
322
318
},
323
319
"cwd": {
324
320
"type": "string",
325
-
"description": "Absolute path to the working directory. Default is the current workspace.",
326
-
"default": "${workspaceRoot}"
321
+
"description": "Absolute path to the working directory. Default is the current workspace folder.",
0 commit comments