Re-ordered commands and updated lsp settings
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -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()
|
||||
}
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user