diff --git a/plugin/core/windows.py b/plugin/core/windows.py index cd1e8b578..1c4cb43f9 100644 --- a/plugin/core/windows.py +++ b/plugin/core/windows.py @@ -545,7 +545,7 @@ def listener_for_view(self, view: sublime.View) -> Optional[AbstractViewListener def discard(self, window: sublime.Window) -> None: wm = self._windows.pop(window.id(), None) if wm: - wm.destroy() + sublime.set_timeout_async(wm.destroy) class RequestTimeTracker: