Skip to content
Merged
Changes from all commits
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
5 changes: 0 additions & 5 deletions src/Microsoft.VisualStudio.Threading/JoinableTaskContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,6 @@ protected internal virtual SynchronizationContext NoMessagePumpSynchronizationCo
{
get
{
// Callers of this method are about to take a private lock, which tends
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could avoid the debugger hangs by adding [DebuggerBrowsable(DebuggerBrowsableState.Never)] to the property.

// to cause a deadlock while debugging because of lock contention with the
// debugger's expression evaluator. So prevent that.
Debugger.NotifyOfCrossThreadDependency();

return NoMessagePumpSyncContext.Default;
}
}
Expand Down