pylsp: Prefer version from user venv (#21069)
Closes #ISSUE Release Notes: - pylsp will now use version installed in user venv, if one is available.
This commit is contained in:
parent
20bffaf93f
commit
e85848a695
8 changed files with 37 additions and 23 deletions
|
@ -76,6 +76,7 @@ impl LspAdapter for RustLspAdapter {
|
|||
async fn check_if_user_installed(
|
||||
&self,
|
||||
delegate: &dyn LspAdapterDelegate,
|
||||
_: Arc<dyn LanguageToolchainStore>,
|
||||
_: &AsyncAppContext,
|
||||
) -> Option<LanguageServerBinary> {
|
||||
let path = delegate.which("rust-analyzer".as_ref()).await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue