Commit 160c2d1
committed
Fix debugger startup hang when session still initializing
This change fixes a hang that occurs when the user starts the debugger
right when the PowerShell session is still initializing. This is caused
by a call to PowerShellContext.SetWorkingDirectory which isn't
respecting the current state of the runspace. The fix is to ask for a
RunspaceHandle to ensure that the runspace is free before attempting to
set the working directory.
Resolves PowerShell/vscode-powershell#6321 parent f862b8c commit 160c2d1
File tree
3 files changed
+7
-4
lines changed- src
- PowerShellEditorServices.Protocol/Server
- PowerShellEditorServices/Session
3 files changed
+7
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
1052 | 1052 | | |
1053 | | - | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1054 | 1057 | | |
1055 | 1058 | | |
1056 | 1059 | | |
| |||
0 commit comments