try an async sending.

This commit is contained in:
cschen 2024-11-30 15:12:38 +01:00
parent 5821b6b354
commit 17ad35dfd7

View file

@ -25,7 +25,7 @@ class CodempClientTextChangeListener(sublime_plugin.TextChangeListener):
try:
vbuff = buffers.lookupId(bid)
logger.debug(f"local buffer change! {vbuff.id}")
vbuff.send_change(changes)
sublime.set_timeout_async(lambda: vbuff.send_change(changes))
except KeyError:
logger.error(f"could not find registered buffer with id {bid}")
pass