提交 cd9f8dfa 编写于 作者: S Sam Harwell

Dismiss completion before closing documents to avoid crashing

上级 f1213f23
......@@ -63,6 +63,13 @@ public virtual async Task InitializeAsync()
/// </summary>
public virtual Task DisposeAsync()
{
if (VisualStudio?.Editor.IsCompletionActive() ?? false)
{
// Make sure completion isn't visible.
// 🐛 Only needed as a workaround for https://devdiv.visualstudio.com/DevDiv/_workitems/edit/801435
VisualStudio.SendKeys.Send(VirtualKey.Escape);
}
_visualStudioContext.Dispose();
return Task.CompletedTask;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册