added debug message on successfull workspace leave.

This commit is contained in:
cschen 2025-02-17 23:34:18 +01:00
parent 6ca6661eb6
commit 756a2d7af3

View file

@ -167,9 +167,8 @@ class CodempLeaveWorkspaceCommand(sublime_plugin.WindowCommand):
def input(self, args):
if "workspace_id" not in args:
wslist = session.client.active_workspaces()
return SimpleListInput(
("workspace_id", wslist),
("workspace_id", session.client.active_workspaces()),
)
def run(self, workspace_id: str): # pyright: ignore[reportIncompatibleMethodOverride]
@ -178,6 +177,8 @@ class CodempLeaveWorkspaceCommand(sublime_plugin.WindowCommand):
finally:
if not session.client.leave_workspace(workspace_id):
logger.error(f"could not leave the workspace '{workspace_id}'")
else:
logger.debug(f"successfully left the workspace '{workspace_id}'")
class CodempInviteToWorkspaceCommand(sublime_plugin.WindowCommand):