mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-11-22 14:54:48 +01:00
chore: disable create on missing behaviour for now
This commit is contained in:
parent
9e2a0f323e
commit
612308d4f4
1 changed files with 11 additions and 11 deletions
|
@ -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}...")
|
||||
|
|
Loading…
Reference in a new issue