提交 57872e4b 编写于 作者: D David Barbet

Assert foreground before checking file open

上级 1b7a7b94
......@@ -128,7 +128,11 @@ public int OnAfterDocumentWindowHide(uint docCookie, IVsWindowFrame pFrame)
public int OnBeforeSave(uint docCookie)
=> VSConstants.E_NOTIMPL;
public bool IsFileOpen(string fileName) => _runningDocumentTable.IsFileOpen(fileName);
public bool IsFileOpen(string fileName)
{
_foregroundAffinitization.AssertIsForeground();
return _runningDocumentTable.IsFileOpen(fileName);
}
/// <summary>
/// Attempts to get a text buffer from the specified moniker.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册