From f6e0894d78c0707abf826705c0e653e8968e7760 Mon Sep 17 00:00:00 2001 From: "nohz.afk" <149959021+nohzafk@users.noreply.github.com> Date: Thu, 1 Aug 2024 05:53:48 +0800 Subject: [PATCH] should wait for signal before set it --- lsp_bridge.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lsp_bridge.py b/lsp_bridge.py index 4f9459d415..8dd7a551cb 100755 --- a/lsp_bridge.py +++ b/lsp_bridge.py @@ -203,10 +203,15 @@ def init_remote_file_server(self): # Build loop for remote files management. self.file_server = FileSyncServer("0.0.0.0", REMOTE_FILE_SYNC_CHANNEL) - # Build loop for call local Emacs function from server. - self.file_elisp_server = FileElispServer("0.0.0.0", REMOTE_FILE_ELISP_CHANNEL, self) + # Build loop for call remote command from local Emacs. + # Start waiting for init_search_backends_complete_event self.file_command_server = FileCommandServer("0.0.0.0", REMOTE_FILE_COMMAND_CHANNEL, self) + + # Build loop for call local Emacs function from server. + # Signal that init_search_backends_complete_event is done + self.file_elisp_server = FileElispServer("0.0.0.0", REMOTE_FILE_ELISP_CHANNEL, self) + set_lsp_bridge_server(self) # Functions for communication between local and remote server