mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2025-03-29 21:01:34 +01:00
add comment for the fucking sublime crashing voodoo, I have no idea...
This commit is contained in:
parent
756a2d7af3
commit
086ff46c1b
1 changed files with 9 additions and 8 deletions
|
@ -101,15 +101,15 @@ class CodempLeaveBufferCommand(sublime_plugin.WindowCommand):
|
||||||
logging.error("The desired buffer is not managed by the workspace.")
|
logging.error("The desired buffer is not managed by the workspace.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# The call must happen separately, otherwise it causes sublime to crash...
|
||||||
|
# no idea why...
|
||||||
def _():
|
def _():
|
||||||
try:
|
buffers.remove(buffer_id)
|
||||||
buffers.remove(buffer_id)
|
if not vws.handle.detach_buffer(buffer_id):
|
||||||
finally:
|
logger.error(f"could not leave the buffer {buffer_id}.")
|
||||||
if not vws.handle.detach_buffer(buffer_id):
|
else:
|
||||||
logger.error(f"could not leave the buffer {buffer_id}.")
|
logger.debug(f"successfully detached from {buffer_id}.")
|
||||||
else:
|
sublime.set_timeout(_, 10)
|
||||||
logger.debug(f"successfully detached from {buffer_id}.")
|
|
||||||
sublime.set_timeout_async(_)
|
|
||||||
|
|
||||||
# Leave Buffer Comand
|
# Leave Buffer Comand
|
||||||
class CodempCreateBufferCommand(sublime_plugin.WindowCommand):
|
class CodempCreateBufferCommand(sublime_plugin.WindowCommand):
|
||||||
|
@ -155,6 +155,7 @@ class CodempDeleteBufferCommand(sublime_plugin.WindowCommand):
|
||||||
return "Delete buffer: "
|
return "Delete buffer: "
|
||||||
|
|
||||||
def input(self, args):
|
def input(self, args):
|
||||||
|
# FIXME: THIS DOES NOT WORK SORRY
|
||||||
if "workspace_id" not in args:
|
if "workspace_id" not in args:
|
||||||
return SimpleListInput(
|
return SimpleListInput(
|
||||||
("workspace_id", session.get_workspaces(owned=True, invited=False)),
|
("workspace_id", session.get_workspaces(owned=True, invited=False)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue