diff --git a/plugins/gtksourceview/lsp_manager/client_ipc.py b/plugins/gtksourceview/lsp_manager/client_ipc.py index 3f22fa8..d6c7a72 100644 --- a/plugins/gtksourceview/lsp_manager/client_ipc.py +++ b/plugins/gtksourceview/lsp_manager/client_ipc.py @@ -81,7 +81,6 @@ class ClientIPC: lsp_response = None keys = None - logger.debug(data_str) try: lsp_response = json.loads(data_str) keys = lsp_response.keys() @@ -169,4 +168,4 @@ class ClientIPC: logger.error("LSP Socket no longer valid.... Removing.") os.unlink(self._ipc_address) except Exception as e: - logger.error( repr(e) ) + logger.error( repr(e) ) \ No newline at end of file diff --git a/plugins/gtksourceview/lsp_manager/plugin.py b/plugins/gtksourceview/lsp_manager/plugin.py index 124237f..84a5de8 100644 --- a/plugins/gtksourceview/lsp_manager/plugin.py +++ b/plugins/gtksourceview/lsp_manager/plugin.py @@ -235,7 +235,7 @@ class Plugin(PluginBase): "method": "textDocument/completion", "language_id": source_view.get_filetype(), "uri": uri, - "version": buffer.version_id, + "version": source_view.get_version_id(), "text": "", "line": line, "column": column, @@ -245,4 +245,4 @@ class Plugin(PluginBase): self.send_message(data) def send_message(self, data: dict): - self.client_ipc.send_manager_ipc_message( json.dumps(data) ) + self.client_ipc.send_manager_ipc_message( json.dumps(data) ) \ No newline at end of file