Protobuf has LSP support. You're welcome
Buf, a company specializing in Protobuf tools, has introduced a fully-featured Language Server Protocol (LSP) server for Protobuf. The LSP protocol is a standard API used to integrate language support into popular IDEs and text editors like VSCode, IntelliJ, and Neovim. Previously, Protobuf lacked the same level of LSP support as other major programming languages, but this new LSP server changes that.
Buf's LSP server, released as part of its suite of tools for the Protobuf ecosystem, works seamlessly with popular editors like VSCode and Neovim. To use the Buf LSP in VSCode, simply install the Buf extension and let it use your installed version of the Buf CLI, which includes the LSP server. Neovim users can achieve the same result by installing the Buf CLI and configuring Neovim to use it as an LSP server.
The Buf LSP offers several advantages over traditional Protobuf compilers like protoc. It features a query-driven frontend that enables incremental compilation and improved diagnostics. This means that Buf LSP can accurately diagnose issues such as duplicate repeated modifiers, providing a better development experience. Additionally, the new AST and intermediate representation employed by Buf LSP facilitate the implementation of new language features as they are added to Protobuf, such as the upcoming features in Editions 2024. The compiler is also memory-efficient, allowing it to handle large workspaces with ease.
Buf's commitment to advancing Protobuf development extends beyond the LSP server. They continue to enhance diagnostics and plan to add more features to the LSP server in the future. To learn more about how Buf can help enforce standards on your organization's data, or to explore career opportunities in building excellent developer tooling, visit their careers page.
Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.