Trying to catch failed lsp start; root_dir added to pylsp

This commit is contained in:
itdominator 2024-09-22 19:38:25 -05:00
parent 47cdf2ffc3
commit c1fcf19ae2
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,9 @@ class LSPControllerWebsocket(LSPControllerBase):
stdout = subprocess.PIPE,
stdin = subprocess.PIPE
)
if not self.lsp_process.poll() == None:
raise Exception("LSP thread not started!")
except Exception as e:
self.log_list.add_log_entry(
"LSP Client Error",

View File

@ -45,7 +45,8 @@
"jedi":{
"extra_paths": [
"/home/abaddon/Portable_Apps/py-venvs/pylsp-venv/venv/lib/python3.10/site-packages"
]
],
"root_dir": ""
}
}
}