Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto spawn/connect to bazel-bsp if it's installed
While we can generate `.bsp/bazelbsp.json` by `cs launch org.jetbrains.bsp;bazel-bsp:2.6.1 -M org.jetbrains.bsp.bazel.instal.Install` https://github.com/JetBrains/bazel-bsp#easy-way-coursier Metals couldn't connect to the bazel-bsp because it wan't autoConnectable. This change enable Metals to see bazel-bsp as autoConnectable, and Metals will spawn and connct to bazel bsp if there's `.bsp/bazelbsp.json`. As @kpodsiad did in scalameta#3233 we should - reindex if the build configuration changed - I'm wondering we should check all *.bzl files and WORKSPACE and BUILD / BUILD.bazel files. And maybe we should honor the project view settings. - Auto install bazel-bsp when we see `WORKSPACE` file. scalameta#5138 partially fix for scalameta#5064
- Loading branch information