提交 25feb762 编写于 作者: J Jason Malinowski

Assert the file is open in Workspace.OnAdditionalDocumentClosed

Previously opened additional documents weren't counted as open in
Workspace.IsDocumentOpen, but after
https://github.com/dotnet/roslyn/pull/33165 we can now properly do this
check.
上级 6d0ac93b
......@@ -556,6 +556,7 @@ protected internal void OnAdditionalDocumentClosed(DocumentId documentId, TextLo
using (_serializationLock.DisposableWait())
{
this.CheckAdditionalDocumentIsInCurrentSolution(documentId);
this.CheckDocumentIsOpen(documentId);
// forget any open document info
ClearOpenDocument(documentId);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册