Skip to content

Commit

Permalink
Try to fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Mar 7, 2024
1 parent 61f799e commit 64b33a4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions plugin/core/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,12 @@ def _dequeue_listener_async(self) -> None:
config = self._needed_config(listener.view)
if config:
# debug("found new config for listener", listener)
plugin = get_plugin(config.name)
if plugin and plugin.should_ignore(listener.view):
debug(listener.view, "ignored by plugin", plugin.__name__)
else:
self._new_listener = listener
self.start_async(config, listener.view)
return
# debug("no new config found for listener", listener)
self._new_listener = None
self._dequeue_listener_async()
self._new_listener = listener
self.start_async(config, listener.view)
else:
# debug("no new config found for listener", listener)
self._new_listener = None
self._dequeue_listener_async()

def _publish_sessions_to_listener_async(self, listener: AbstractViewListener) -> None:
inside_workspace = self._workspace.contains(listener.view)
Expand Down Expand Up @@ -236,7 +232,11 @@ def _needed_config(self, view: sublime.View) -> Optional[ClientConfig]:
handled = True
break
if not handled:
return config
plugin = get_plugin(config.name)
if plugin and plugin.should_ignore(view):
debug(view, "ignored by plugin", plugin.__name__)
else:
return config
return None

def start_async(self, config: ClientConfig, initiating_view: sublime.View) -> None:
Expand Down

0 comments on commit 64b33a4

Please sign in to comment.