From cdafd89b0b20e6f02d014a1452c9fe456697f9fd Mon Sep 17 00:00:00 2001 From: Camillo Schenone Date: Sun, 3 Mar 2024 19:12:20 +0100 Subject: [PATCH] fix: minor fixes to task manager Former-commit-id: fc5c2f9b844126a87341a94f1ded299c73916fad --- bindings/codemp_client.cpython-38-darwin.so.REMOVED.git-id | 2 +- plugin.py | 4 ++-- src/TaskManager.py | 4 ++-- src/lib.rs | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bindings/codemp_client.cpython-38-darwin.so.REMOVED.git-id b/bindings/codemp_client.cpython-38-darwin.so.REMOVED.git-id index f096870..535b648 100644 --- a/bindings/codemp_client.cpython-38-darwin.so.REMOVED.git-id +++ b/bindings/codemp_client.cpython-38-darwin.so.REMOVED.git-id @@ -1 +1 @@ -28b1d0465b66af6afb0266207d139e48c95173fd \ No newline at end of file +6e2a3de2a92f4117ac7f4f903cd9e54831bfb7d3 \ No newline at end of file diff --git a/plugin.py b/plugin.py index 73e7e4a..dba605f 100644 --- a/plugin.py +++ b/plugin.py @@ -27,7 +27,7 @@ def plugin_loaded(): CLIENT = VirtualClient(disconnect_client) TEXT_LISTENER = CodempClientTextChangeListener() - logger = CodempLogger(init_logger(True)) + logger = CodempLogger(init_logger(False)) CLIENT.tm.dispatch(logger.spawn_logger(), "codemp-logger") status_log("plugin loaded") @@ -189,7 +189,7 @@ class CodempJoinCommand(sublime_plugin.WindowCommand): class CodempJoinWorkspaceCommand(sublime_plugin.WindowCommand): def run(self, workspace_id): global CLIENT - rt.dispatch(CLIENT.join_workspace(workspace_id, "sublime2")) + rt.dispatch(CLIENT.join_workspace(workspace_id, "sublime3")) def input_description(self): return "Join specific workspace" diff --git a/src/TaskManager.py b/src/TaskManager.py index c888f5b..6cd47d3 100644 --- a/src/TaskManager.py +++ b/src/TaskManager.py @@ -56,8 +56,8 @@ class TaskManager: def stop(self, name): t = self.get_task(name) if t is not None: - rt.sync(self._stop(t)) + rt.dispatch(self._stop(t)) def stop_all(self): for task in self.tasks: - rt.sync(self._stop(task)) + rt.dispatch(self._stop(task)) diff --git a/src/lib.rs b/src/lib.rs index 16133c5..6d11799 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,6 +94,7 @@ fn init_logger(py: Python<'_>, debug: Option) -> PyResult> { } else { tracing::Level::INFO }; + let format = tracing_subscriber::fmt::format() .without_time() .with_level(true)