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()
}
)
)