提交 e5cf10bd 编写于 作者: J Jason Malinowski

Report a non-fatal error if we end up with a Document without a path

上级 9bfbd021
......@@ -18,6 +18,7 @@
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Editor.Shared.Utilities;
using Microsoft.CodeAnalysis.Emit;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.PooledObjects;
......@@ -1184,7 +1185,7 @@ protected override void ApplyDocumentInfoChanged(DocumentId documentId, Document
if (document.FilePath == null)
{
Debug.Fail("Attempting to change the information of a document without a file path.");
FatalError.ReportWithoutCrash(new Exception("Attempting to change the information of a document without a file path."));
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册