Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

Protobuf has LSP support

Article URL: https://buf.build/blog/protobuf-lsp Comments URL: https://news.ycombinator.com/item?id=49322573 Points: 165 # Comments: 117

Buf, a company specializing in Protobuf development tools, has announced the release of a fully-featured, spec-compliant Language Server Protocol (LSP) server for Protobuf. The LSP is a standard API for integrating language support into popular IDEs and text editors like VSCode, IntelliJ, and Neovim. This new LSP server for Protobuf provides developers with go to definition, code completion, finding references, and semantics-aware syntax highlighting capabilities within their preferred editor.

Previously, Protobuf lacked the same LSP support as other major programming languages, which has now changed with the introduction of Buf's LSP server. The server is powered by Buf's CLI and offers modern IDE support for Protobuf for the first time. The company believes Protobuf is the best schema language due to its established ecosystem of libraries and tools, and the new LSP server aims to make it the easiest choice for developers.

To use the Buf LSP server, users can simply install the Buf extension in their preferred editor. For Neovim users, they can configure the editor to use Buf CLI as an LSP server by adding a specific line to their init.lua configuration file. Other editors can enable the Buf LSP server by running the buf lsp serve command. Buf's implementation of the LSP server is faster and more flexible than the traditional protoc compiler, as it offers incremental compilation and better diagnostics.

Buf's LSP server also includes a new, query-driven frontend that enables memory-efficient handling of large Buf modules, making it an ideal choice for developing with Protobuf in workspaces with extensive files. The company is continuously improving its diagnostics and planning to add more features to the LSP server in the future. Buf aims to push the boundaries of what developers can accomplish with Protobuf, enabling schema-driven development for all applications.

Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at buf.build →

More in Tech

var in JavaScript

var is one of the ways to create a variable in JavaScript. A variable is a place to store a value, like a name or a number. var is mostly seen in old JavaScript code, written before 2015.

  • "var" is a common variable declaration method in JavaScript.
  • Variables created with "var" can be modified and re-declared.
  • "var" variables are hoisted to the top of their containing function.

React Native Architecture: 8 Folder Structures for Scalable Apps

A team-lead's breakdown of 8 real React Native project architectures — what each one actually solves, where the "Domain-Driven" and "Micro-Frontend" labels get misused, and how to pick one without…

  • Flat structure suitable for prototypes and MVPs, but becomes unmanageable with growing files
  • Feature-based structure common in production apps, organizes code by product area
  • Domain-based structure aligns with business capabilities, mirrors org chart for large-scale products

FetchQuest: Spec-Driven Dog Battling on Solana Devnet

This is a submission for Weekend Challenge: Dog Days Edition What I Built FetchQuest — a tiny dog-vs-raccoon battler. You generate a dog with random stats (Speed, Bark, Chomp) and a personality tag…

  • FetchQuest is a dog-vs-raccoon battler on Solana devnet
  • Players create dogs with random stats and personality
  • Spec-driven development guided project decisions

More from Sunday 16 August →