Make python run local worktree LSPs (#18353)

Release Notes:

- Python: made it possible to use locally installed `pyright` if
available

---------

Co-authored-by: conrad <conrad@zed.dev>
This commit is contained in:
Mikayla Maki 2024-09-25 12:45:41 -07:00 committed by GitHub
parent dc7c49bd0b
commit ae6a3d15af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 73 additions and 1 deletions

View file

@ -177,6 +177,7 @@ impl NodeRuntime {
"5000",
]);
// This is also wrong because the directory is wrong.
self.run_npm_subcommand(directory, "install", &arguments)
.await?;
Ok(())
@ -576,7 +577,7 @@ impl NodeRuntimeTrait for SystemNodeRuntime {
}
}
async fn read_package_installed_version(
pub async fn read_package_installed_version(
node_module_directory: PathBuf,
name: &str,
) -> Result<Option<String>> {