Skip to content

Commit

Permalink
Python goes Java
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Jul 6, 2022
1 parent f89ee01 commit e1b11e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/core/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def is_enabled(self) -> bool:
return self.session() is not None

def session(self) -> Optional[Session]:
for session in windows.lookup(self.window)._sessions:
for session in windows.lookup(self.window).get_sessions():
if self.capability and not session.has_capability(self.capability):
continue
if self.session_name and session.config.name != self.session_name:
Expand Down
3 changes: 3 additions & 0 deletions plugin/core/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def __init__(
def get_config_manager(self) -> WindowConfigManager:
return self._configs

def get_sessions(self) -> Generator[Session, None, None]:
yield from self._sessions

def on_load_project_async(self) -> None:
self.update_workspace_folders_async()
self._configs.update()
Expand Down

0 comments on commit e1b11e0

Please sign in to comment.