Load the LSP from workspace in language extension #10760
Labels
enhancement
[core label]
extension infrastructure
Feedback for extensions APIs, creation, management, etc
language server
An umbrella label for all language servers
Check for existing issues
Describe the feature
Some extension needs to load the LSP installed in the workspace, if not fallback to the global installed LSP.
For example:
The biome extension needs to be able to load the LSP binary installed in the workspace, if not install and fallback to a global LSP binary.
However, it doesn't seem like we are able to check if an LSP binary exists in the workspace, as things like
Path::exists
don't really work (probably because of wasm?).I also tried to use
worktree.read_text_file()
to see if thenode_modules/@biomejs/biome/package.json
exists in the workspace, it works sometimes but mostly doesn't work. biomejs/biome-zed#9If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: