提交 7f07731e 编写于 作者: T Tanner Gooding

Update the VisualStudioInstanceFactory to close the _currentlyRunningInstance...

Update the VisualStudioInstanceFactory to close the _currentlyRunningInstance before setting it to null.
上级 38afa698
......@@ -79,6 +79,7 @@ internal void NotifyCurrentInstanceContextDisposed(bool canReuse)
if (!canReuse)
{
_currentlyRunningInstance?.Close();
_currentlyRunningInstance = null;
}
}
......@@ -221,6 +222,7 @@ private static Process StartNewVisualStudioProcess(string installationPath)
public void Dispose()
{
_currentlyRunningInstance?.Close();
_currentlyRunningInstance = null;
// We want to make sure everybody cleaned up their contexts by the end of everything
ThrowExceptionIfAlreadyHasActiveContext();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册