HN
Today

Protobuf has LSP support. You're welcome

Buf has officially launched the first fully-featured, production-grade Language Server Protocol (LSP) server for Protobuf, a significant step forward for developers. This innovation finally brings modern IDE features like 'go to definition' and intelligent code completion to Protobuf, greatly enhancing developer experience. The release is poised to make Protobuf development more efficient and accessible, aligning with Hacker News's interest in robust developer tooling and infrastructure improvements.

6
Score
1
Comments
#3
Highest Rank
7h
on Front Page
First Seen
Aug 16, 7:00 PM
Last Seen
Aug 17, 1:00 AM
Rank Over Time
74433611

The Lowdown

Buf has announced the release of the first comprehensive, production-ready Language Server Protocol (LSP) server for Protobuf. This development aims to modernize the Protobuf development workflow by integrating advanced IDE functionalities previously unavailable.

  • LSP Integration: The LSP server provides standard IDE features such as 'go to definition', code completion, finding references, and semantics-aware syntax highlighting, bringing Protobuf on par with other major programming languages in terms of development tooling.
  • Buf's Ecosystem: This new LSP server is powered by the Buf CLI and integrates into Buf's existing suite of Protobuf tools, including Protobuf-ES, Protovalidate, ConnectRPC, and the Buf Schema Registry, reinforcing their commitment to a complete Protobuf ecosystem.
  • Technical Foundations: The LSP server leverages Buf's protocompile frontend, which is touted as faster and more flexible than protoc. It features a new query-driven frontend for incremental compilation and improved diagnostics, capable of precisely identifying errors like duplicate modifiers.
  • Ease of Use: Installation is straightforward, with dedicated extensions for VSCode and clear configuration instructions for Neovim, ensuring broad accessibility for developers.
  • Future Enhancements: Buf plans continuous improvements, including automatic import fixes, tighter buf.yaml integration, code completion for custom options, and dedicated Protovalidate support, further solidifying its utility.

Buf emphasizes that this initiative makes Protobuf not just the smart choice, but also the easiest choice for schema-driven development, promising to push the boundaries of what developers can achieve with the language.