public int OnAfterDocumentWindowHide(uint docCookie, IVsWindowFrame frame)
{
ThreadHelper.ThrowIfNotOnUIThread();
//object path = frame.GetFilePath();
//Debug.WriteLine($"tr: OnAfterDocumentWindowHide(docCookie={docCookie}, path='{path}')");
WindowFrameInfo windowFrameInfo;
if (_windowFrames.TryGetValue(frame, out windowFrameInfo))
{
DocumentWindowDestroy?.Invoke(this, new DocumentWindowEventArgs(windowFrameInfo));
windowFrameInfo.Dispose();
_windowFrames.Remove(frame);
}
return VSConstants.S_OK;
}