diff --git a/plugin/core/windows.py b/plugin/core/windows.py index 8480674d3..9234724ef 100644 --- a/plugin/core/windows.py +++ b/plugin/core/windows.py @@ -563,12 +563,6 @@ def discard(self, window: sublime.Window) -> None: if wm: sublime.set_timeout_async(wm.destroy) - def _on_userprefs_updated_async(self) -> None: - for wm in self._windows.values(): - wm.on_diagnostics_updated() - for session in wm.get_sessions(): - session.on_userprefs_changed_async() - # --- Implements LspSettingsChangeListener ------------------------------------------------------------------------- def on_client_config_updated(self, config_name: str | None = None) -> None: @@ -576,7 +570,10 @@ def on_client_config_updated(self, config_name: str | None = None) -> None: wm.get_config_manager().update(config_name) def on_userprefs_updated(self) -> None: - sublime.set_timeout_async(self._on_userprefs_updated_async) + for wm in self._windows.values(): + wm.on_diagnostics_updated() + for session in wm.get_sessions(): + sublime.set_timeout_async(session.on_userprefs_changed_async) class RequestTimeTracker: