Closed cameron-martin closed 2 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!).
@withered-magic sounds like a good idea, feel free to open a PR.
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.