mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-12-23 13:14:52 +01:00
fix: minor fixes to task manager
Former-commit-id: fc5c2f9b844126a87341a94f1ded299c73916fad
This commit is contained in:
parent
a302180a19
commit
cdafd89b0b
4 changed files with 6 additions and 5 deletions
|
@ -1 +1 @@
|
||||||
28b1d0465b66af6afb0266207d139e48c95173fd
|
6e2a3de2a92f4117ac7f4f903cd9e54831bfb7d3
|
|
@ -27,7 +27,7 @@ def plugin_loaded():
|
||||||
CLIENT = VirtualClient(disconnect_client)
|
CLIENT = VirtualClient(disconnect_client)
|
||||||
TEXT_LISTENER = CodempClientTextChangeListener()
|
TEXT_LISTENER = CodempClientTextChangeListener()
|
||||||
|
|
||||||
logger = CodempLogger(init_logger(True))
|
logger = CodempLogger(init_logger(False))
|
||||||
CLIENT.tm.dispatch(logger.spawn_logger(), "codemp-logger")
|
CLIENT.tm.dispatch(logger.spawn_logger(), "codemp-logger")
|
||||||
|
|
||||||
status_log("plugin loaded")
|
status_log("plugin loaded")
|
||||||
|
@ -189,7 +189,7 @@ class CodempJoinCommand(sublime_plugin.WindowCommand):
|
||||||
class CodempJoinWorkspaceCommand(sublime_plugin.WindowCommand):
|
class CodempJoinWorkspaceCommand(sublime_plugin.WindowCommand):
|
||||||
def run(self, workspace_id):
|
def run(self, workspace_id):
|
||||||
global CLIENT
|
global CLIENT
|
||||||
rt.dispatch(CLIENT.join_workspace(workspace_id, "sublime2"))
|
rt.dispatch(CLIENT.join_workspace(workspace_id, "sublime3"))
|
||||||
|
|
||||||
def input_description(self):
|
def input_description(self):
|
||||||
return "Join specific workspace"
|
return "Join specific workspace"
|
||||||
|
|
|
@ -56,8 +56,8 @@ class TaskManager:
|
||||||
def stop(self, name):
|
def stop(self, name):
|
||||||
t = self.get_task(name)
|
t = self.get_task(name)
|
||||||
if t is not None:
|
if t is not None:
|
||||||
rt.sync(self._stop(t))
|
rt.dispatch(self._stop(t))
|
||||||
|
|
||||||
def stop_all(self):
|
def stop_all(self):
|
||||||
for task in self.tasks:
|
for task in self.tasks:
|
||||||
rt.sync(self._stop(task))
|
rt.dispatch(self._stop(task))
|
||||||
|
|
|
@ -94,6 +94,7 @@ fn init_logger(py: Python<'_>, debug: Option<bool>) -> PyResult<Py<PyLogger>> {
|
||||||
} else {
|
} else {
|
||||||
tracing::Level::INFO
|
tracing::Level::INFO
|
||||||
};
|
};
|
||||||
|
|
||||||
let format = tracing_subscriber::fmt::format()
|
let format = tracing_subscriber::fmt::format()
|
||||||
.without_time()
|
.without_time()
|
||||||
.with_level(true)
|
.with_level(true)
|
||||||
|
|
Loading…
Reference in a new issue