Skip to content

Commit a08551e

Browse files
Docs
1 parent ca30655 commit a08551e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/VisualStudio/Core/Def/LanguageService/AbstractLanguageService`2.VsLanguageDebugInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ IVsDebugName CreateDebugName(
221221

222222
var document = breakpoint.Document;
223223
var filePath = _languageService.Workspace.GetFilePath(document.Id);
224+
225+
// We're (unfortunately) blocking the UI thread here. So avoid async io as we actually
226+
// awant the IO to complete as quickly as possible, on this thread if necessary.
224227
var text = document.GetTextSynchronously(cancellationToken);
225228
var span = text.GetVsTextSpanForSpan(breakpoint.TextSpan);
226229
// If we're inside an Venus code nugget, we need to map the span to the surface buffer.

0 commit comments

Comments
 (0)