提交 251daaec 编写于 作者: A Artur Spychaj

Merge pull request #8377 from drognanar/fixencdocumentsource

Fix EnC issue with document source out of sync
......@@ -601,7 +601,7 @@ private void AddActiveStatements(Solution solution, ShellInterop.ENC_ACTIVE_STAT
// If the PDB is out of sync with the source we might get bad spans.
var sourceLines = source.Lines;
if (lineSpan.End.Line >= sourceLines.Count || lineSpan.End.Character > sourceLines[sourceLines.Count - 1].EndIncludingLineBreak)
if (lineSpan.End.Line >= sourceLines.Count || sourceLines.GetPosition(lineSpan.End) > sourceLines[sourceLines.Count - 1].EndIncludingLineBreak)
{
log.Write("AS out of bounds (line count is {0})", source.Lines.Count);
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册