Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debugger startup hang when session still initializing #431

Merged
merged 1 commit into from
Apr 7, 2017

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Apr 7, 2017

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#632

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#632
@daviwil daviwil added this to the 0.12.1 milestone Apr 7, 2017
@daviwil daviwil merged commit 885dcab into PowerShell:develop Apr 7, 2017
@daviwil daviwil deleted the fix-vsc-632 branch April 7, 2017 03:51
TylerLeonhardt pushed a commit to TylerLeonhardt/PowerShellEditorServices that referenced this pull request Feb 26, 2019
Add startSessionCommand handler for debugger configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants