From 5d8e990c8da13a31fd1e09ae704576cff125dffa Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sat, 21 Sep 2024 01:12:55 -0500 Subject: [PATCH] Re-ordered commands and updated lsp settings --- src/core/controllers/lsp/lsp_controller_websocket.py | 2 +- src/core/widgets/lsp_message_box.py | 4 ++-- src/core/widgets/lsp_ui.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/controllers/lsp/lsp_controller_websocket.py b/src/core/controllers/lsp/lsp_controller_websocket.py index aac61b9..3fa6cc6 100644 --- a/src/core/controllers/lsp/lsp_controller_websocket.py +++ b/src/core/controllers/lsp/lsp_controller_websocket.py @@ -29,7 +29,7 @@ class LSPControllerWebsocket(LSPControllerBase): if not self._start_command: return try: self.lsp_process = subprocess.Popen( - ["pylsp", "--ws", "--port", "4114"], + self._start_command, stdout = subprocess.PIPE, stdin = subprocess.PIPE ) diff --git a/src/core/widgets/lsp_message_box.py b/src/core/widgets/lsp_message_box.py index 81e7036..461deb4 100644 --- a/src/core/widgets/lsp_message_box.py +++ b/src/core/widgets/lsp_message_box.py @@ -87,8 +87,8 @@ class LSPMessageBox(Gtk.Box): def start_stop_lsp(self): parent = self.get_parent() - _command: str = parent.alt_command_entry.get_text() - # _command: str = parent.command_entry.get_text() + _command: str = parent.command_entry.get_text() + # _command: str = parent.alt_command_entry.get_text() # _command: str = parent.socket_entry.get_text() command: [] = _command.split() if len( _command.split() ) > 0 else [ _command ] diff --git a/src/core/widgets/lsp_ui.py b/src/core/widgets/lsp_ui.py index 6e89d57..e2fef46 100644 --- a/src/core/widgets/lsp_ui.py +++ b/src/core/widgets/lsp_ui.py @@ -81,12 +81,12 @@ class LSPUI(Gtk.Grid): # child, left, top, width, height self.attach(self.link_btn, 0, 0, 3, 1) - self.attach(alt_command_lbl, 0, 1, 1, 1) - self.attach(command_lbl, 0, 2, 1, 1) + self.attach(command_lbl, 0, 1, 1, 1) + self.attach(alt_command_lbl, 0, 2, 1, 1) self.attach(socket_lbl, 0, 3, 1, 1) - self.attach(self.alt_command_entry, 1, 1, 2, 1) - self.attach(self.command_entry, 1, 2, 2, 1) + self.attach(self.command_entry, 1, 1, 2, 1) + self.attach(self.alt_command_entry, 1, 2, 2, 1) self.attach(self.socket_entry, 1, 3, 2, 1) self.attach(init_options_lbl, 0, 4, 3, 1)