olafurpg
Joined 13 years ago
Joined 13 years ago
The general idea is that you should be able to navigate your codebase online with Sourcegraph similar to how you would navigate the code with a local IDE (IntelliJ, VS Code). The benefits of Sourcegraph become more pronounced once the size of the codebase grows, especially across multiple repositories, and you're working with a large team of developers.
There are some methods in BSP that might merit inclusion in LSP like buildTarget/test and buildTarget/run.
However, there are some critical methods in BSP that make no sense in LSP like buildTarget/scalacOptions. This is a method to extract dependencies and other compiler flags that are necessary for a Scala language server to provide completions, navigation, etc. Currently, every Scala IDE builds its own "export" command for each supported build tool resulting in duplicated effort. With BSP, we hope that a build tool can implement the server once and in return get integrations for multiple IDEs.
Scalafmt is indeed new, just released 0.1.0 last week. However, it's already become useful for me with the IntelliJ plugin. Scalafmt is practically my full-time job for 2 more months so you can expect it to get more mature soon. Feature requests and bug reports are very welcome.