Restructuring lsp response monitoring

This commit is contained in:
itdominator 2024-09-16 01:59:53 -05:00
parent bd9a24c007
commit cc5d56a067
2 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,6 @@ class LSPController(LSPControllerEvents):
self._send_message( ClientNotification(method, params) ) self._send_message( ClientNotification(method, params) )
def send_request(self, method: str, params: {} = {}): def send_request(self, method: str, params: {} = {}):
self._monitor_lsp_response()
self._send_message( ClientRequest(self._message_id, method, params) ) self._send_message( ClientRequest(self._message_id, method, params) )
self.request_list[self._message_id] = {"method": method} self.request_list[self._message_id] = {"method": method}
@ -193,5 +192,6 @@ class LSPController(LSPControllerEvents):
GLib.idle_add(self.handle_lsp_response, lsp_response) GLib.idle_add(self.handle_lsp_response, lsp_response)
def handle_lsp_response(self, lsp_response: LSPResponseTypes): def handle_lsp_response(self, lsp_response: LSPResponseTypes):
self._monitor_lsp_response()
self.log_list.add_log_entry("LSP Response", lsp_response) self.log_list.add_log_entry("LSP Response", lsp_response)
event_system.emit("respond-to-client", (get_message_str(lsp_response),)) event_system.emit("respond-to-client", (get_message_str(lsp_response),))

Binary file not shown.