From 612308d4f422ece5af33a3d212ad6b6432fd7266 Mon Sep 17 00:00:00 2001 From: cschen Date: Sun, 3 Nov 2024 17:58:17 +0100 Subject: [PATCH] chore: disable create on missing behaviour for now --- plugin/commands/workspace.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/plugin/commands/workspace.py b/plugin/commands/workspace.py index 289b07a..ab6a59f 100644 --- a/plugin/commands/workspace.py +++ b/plugin/commands/workspace.py @@ -53,17 +53,17 @@ class CodempJoinBufferCommand(sublime_plugin.WindowCommand): except KeyError: pass - # if doesn't exist in the workspace, ask for creation. - if vws.handle.get_buffer(buffer_id) is None: - if sublime.ok_cancel_dialog( - f"There is no buffer named '{buffer_id}' in the workspace '{workspace_id}'.\n\ - Do you want to create it?", - ok_title="yes", title="Create Buffer?", - ): - sublime.run_command("codemp_create_buffer", { - "workspace_id": workspace_id, - "buffer_id": buffer_id - }) + # # if doesn't exist in the workspace, ask for creation. + # if vws.handle.get_buffer(buffer_id) is None: + # if sublime.ok_cancel_dialog( + # f"There is no buffer named '{buffer_id}' in the workspace '{workspace_id}'.\n\ + # Do you want to create it?", + # ok_title="yes", title="Create Buffer?", + # ): + # sublime.run_command("codemp_create_buffer", { + # "workspace_id": workspace_id, + # "buffer_id": buffer_id + # }) # now we can defer the attaching process logger.debug(f"attempting to attach to {buffer_id}...")