bazelbuild / vscode-bazel

Bazel support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel
Apache License 2.0
231 stars 76 forks source link

docs: Update options for language servers #369

Closed cameron-martin closed 2 months ago

cameron-martin commented 3 months ago

Previously the docs suggested using facebook's proof-of-concept bazel language server, but there is a more up-to-date version available based on this. There is also another implementation, starpls, that is based on rust-analyzer. This also updates the default values of the lsp settings to not favour a particular language server.

withered-magic commented 3 months ago

A bit off topic, but should we maybe add a disclaimer about certain functionalities not working correctly for either language server unless you're on a certain Bazel version? The main scenario I had in mind is for workspaces using bzlmod, since things like goto def won't work at all without the bazel mod dump_repo_mappings command, which wasn't added till 7.1.0 (pretty recently!).

cameron-martin commented 2 months ago

@withered-magic sounds like a good idea, feel free to open a PR.