@@ -187,11 +187,13 @@ def __init__(
187187
188188 @property
189189 def session (self ) -> Session :
190+ """Return tmux session using in workspace builder session."""
190191 if self ._session is None :
191192 raise exc .SessionMissingWorkspaceException ()
192193 return self ._session
193194
194195 def session_exists (self , session_name : str ) -> bool :
196+ """Return true if tmux session already exists."""
195197 assert session_name is not None
196198 assert isinstance (session_name , str )
197199 assert self .server is not None
@@ -556,6 +558,7 @@ def config_after_window(
556558 window .set_window_option (key , val )
557559
558560 def find_current_attached_session (self ) -> Session :
561+ """Return current attached session."""
559562 assert self .server is not None
560563
561564 current_active_pane = get_current_pane (self .server )
@@ -572,4 +575,5 @@ def find_current_attached_session(self) -> Session:
572575 )
573576
574577 def first_window_pass (self , i : int , session : Session , append : bool ) -> bool :
578+ """Return True first window, used when iterating session windows."""
575579 return len (session .windows ) == 1 and i == 1 and not append
0 commit comments