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 breakpoint setting deadlock #1112

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
codacy issues
  • Loading branch information
TylerLeonhardt committed Nov 22, 2019
commit d44fd204d0d133a58e4c955d4584aadd56ecfeb0
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.PowerShell.EditorServices.Services
{
internal class DebugStateService
{
private SemaphoreSlim _setBreakpointInProgressHandle = AsyncUtils.CreateSimpleLockingSemaphore();
private readonly SemaphoreSlim _setBreakpointInProgressHandle = AsyncUtils.CreateSimpleLockingSemaphore();

internal bool NoDebug { get; set; }

Expand Down Expand Up @@ -43,7 +43,8 @@ internal void ReleaseSetBreakpointHandle()

internal async Task WaitForSetBreakpointHandleAsync()
{
await _setBreakpointInProgressHandle.WaitAsync();
await _setBreakpointInProgressHandle.WaitAsync()
.ConfigureAwait(continueOnCapturedContext: false);
}
}
}