python: Add pylsp as the secondary language server (#20358)

Closes #ISSUE

Release Notes:

- Added python-lsp-server as a secondary built-in language server.
This commit is contained in:
Piotr Osiewicz
2024-11-12 17:23:40 +01:00
committed by GitHub
parent 181c3724aa
commit d1e2c6e657
2 changed files with 287 additions and 5 deletions
+4 -3
View File
@@ -175,9 +175,10 @@ pub fn init(languages: Arc<LanguageRegistry>, node_runtime: NodeRuntime, cx: &mu
language!("markdown-inline");
language!(
"python",
vec![Arc::new(python::PythonLspAdapter::new(
node_runtime.clone(),
))],
vec![
Arc::new(python::PythonLspAdapter::new(node_runtime.clone(),)),
Arc::new(python::PyLspAdapter::new())
],
PythonContextProvider,
Arc::new(PythonToolchainProvider::default()) as Arc<dyn ToolchainLister>
);