Restructuring lsp response monitoring
This commit is contained in:
		@@ -71,7 +71,6 @@ class LSPController(LSPControllerEvents):
 | 
			
		||||
        self._send_message( ClientNotification(method, params) )
 | 
			
		||||
 | 
			
		||||
    def send_request(self, method: str, params: {} = {}):
 | 
			
		||||
        self._monitor_lsp_response()
 | 
			
		||||
        self._send_message( ClientRequest(self._message_id, method, params) )
 | 
			
		||||
 | 
			
		||||
        self.request_list[self._message_id] = {"method": method}
 | 
			
		||||
@@ -193,5 +192,6 @@ class LSPController(LSPControllerEvents):
 | 
			
		||||
            GLib.idle_add(self.handle_lsp_response, lsp_response)
 | 
			
		||||
 | 
			
		||||
    def handle_lsp_response(self, lsp_response: LSPResponseTypes):
 | 
			
		||||
        self._monitor_lsp_response()
 | 
			
		||||
        self.log_list.add_log_entry("LSP Response", lsp_response)
 | 
			
		||||
        event_system.emit("respond-to-client", (get_message_str(lsp_response),))
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user