Skip to content
代码片段 群组 项目
提交 7af11bd7 编辑于 作者: Brett V. Forsgren's avatar Brett V. Forsgren 提交者: GitHub
浏览文件

Merge pull request #21567 from dpoeschl/DontCrashQuickInfoWhenLinkedDocumentsDoNotMatch

Don't crash in QuickInfo if the search for linked tokens goes out of bounds
No related branches found
No related tags found
无相关合并请求
......@@ -143,9 +143,11 @@ private async Task<SyntaxToken> FindTokenInLinkedDocument(SyntaxToken token, Doc
// Capturing more information for https://devdiv.visualstudio.com/DevDiv/_workitems?id=209299
var originalText = await originalDocument.GetTextAsync().ConfigureAwait(false);
var linkedText = await linkedDocument.GetTextAsync().ConfigureAwait(false);
var linkedFileException = new LinkedFileDiscrepancyException(thrownException, originalText.ToString(), linkedText.ToString());
FatalError.Report(linkedFileException);
// This problem itself does not cause any corrupted state, it just changes the set
// of symbols included in QuickInfo, so we report and continue running.
FatalError.ReportWithoutCrash(linkedFileException);
}
return default(SyntaxToken);
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册