Re-ordered commands and updated lsp settings

This commit is contained in:
2024-09-21 01:12:55 -05:00
parent cc0117da78
commit de8fe47231
6 changed files with 55 additions and 54 deletions

View File

@@ -1,4 +1,5 @@
# Python imports
import traceback
import subprocess
# Lib imports
@@ -42,7 +43,7 @@ class LSPControllerSTDInSTDOut(LSPControllerBase):
"2.0",
None,
{
"error": repr(e)
"error": traceback.format_exc()
}
)
)
@@ -114,4 +115,3 @@ class LSPControllerSTDInSTDOut(LSPControllerBase):
if not lsp_response: return
GLib.idle_add(self.handle_lsp_response, lsp_response)

View File

@@ -1,4 +1,5 @@
# Python imports
import traceback
import subprocess
# Lib imports
@@ -29,7 +30,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
)
@@ -40,7 +41,7 @@ class LSPControllerWebsocket(LSPControllerBase):
"2.0",
None,
{
"error": repr(e)
"error": traceback.format_exc()
}
)
)

View File

@@ -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 ]

View File

@@ -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)