提交 44866a38 编写于 作者: C Cyrus Najmabadi

Use a different exception type.

上级 afbc6e45
......@@ -677,7 +677,7 @@ public void OpenDocumentCore(DocumentId documentId, bool activate = true)
if (!foregroundObject.IsForeground())
{
throw new NotSupportedException(ServicesVSResources.ThisWorkspaceOnlySupportsOpeningDocumentsOnTheUIThread);
throw new InvalidOperationException(ServicesVSResources.ThisWorkspaceOnlySupportsOpeningDocumentsOnTheUIThread);
}
var document = this.GetHostDocument(documentId);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册