From 756a2d7af373791a085f9fd5f02410367716fb20 Mon Sep 17 00:00:00 2001 From: cschen <camillo.schenone@gmail.com> Date: Mon, 17 Feb 2025 23:34:18 +0100 Subject: [PATCH] added debug message on successfull workspace leave. --- plugin/commands/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/commands/client.py b/plugin/commands/client.py index 2250fd4..bdadae7 100644 --- a/plugin/commands/client.py +++ b/plugin/commands/client.py @@ -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):