mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2025-03-29 21:01:34 +01:00
added debug message on successfull workspace leave.
This commit is contained in:
parent
6ca6661eb6
commit
756a2d7af3
1 changed files with 3 additions and 2 deletions
|
@ -167,9 +167,8 @@ class CodempLeaveWorkspaceCommand(sublime_plugin.WindowCommand):
|
||||||
|
|
||||||
def input(self, args):
|
def input(self, args):
|
||||||
if "workspace_id" not in args:
|
if "workspace_id" not in args:
|
||||||
wslist = session.client.active_workspaces()
|
|
||||||
return SimpleListInput(
|
return SimpleListInput(
|
||||||
("workspace_id", wslist),
|
("workspace_id", session.client.active_workspaces()),
|
||||||
)
|
)
|
||||||
|
|
||||||
def run(self, workspace_id: str): # pyright: ignore[reportIncompatibleMethodOverride]
|
def run(self, workspace_id: str): # pyright: ignore[reportIncompatibleMethodOverride]
|
||||||
|
@ -178,6 +177,8 @@ class CodempLeaveWorkspaceCommand(sublime_plugin.WindowCommand):
|
||||||
finally:
|
finally:
|
||||||
if not session.client.leave_workspace(workspace_id):
|
if not session.client.leave_workspace(workspace_id):
|
||||||
logger.error(f"could not leave the 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):
|
class CodempInviteToWorkspaceCommand(sublime_plugin.WindowCommand):
|
||||||
|
|
Loading…
Add table
Reference in a new issue