Protobuf
Check for existing issues
- [X] Completed
Language
Protobuf
Tree Sitter parser link
https://github.com/mitchellh/tree-sitter-proto
Language server link
https://github.com/bufbuild/buf-language-server
Misc notes
A user requested that we support protobuf files.
It seems like no official grammars exists for Tree Sitter. The one I linked seems like the only real choice. We might need to write our own grammar.
The linked language server (suggested by the same user) is still being developed, but it seems like the team building it is pretty professional, so I assume this will eventually be the standard. The other language server offerings seem to be abandoned and not finished.
Noting that the tree sitter linked here is mentioned in the official tree sitter docs. So it may become the official one.
https://tree-sitter.github.io/tree-sitter/
Noting also that the author of https://github.com/mitchellh/tree-sitter-proto is the founder of Hashicorp and pretty solid engineer.
Initial syntax highlights and outlines were added with https://github.com/zed-industries/zed/pull/6748
The language server is not added yet.
Syntax highlighting is available in Zed v0.121.0.
Hi Team , I am trying to migrate my editor from VSCode , but without protobuf ls , I cannot navigate efficiently inside the huge protobuf repo .
And I find out that Zed provides the Extension Trait , but without LSP Definition , I still cannot impl the extension by myself , any plans to add more LSP interfaces exported to Extensions ?
OFF TOPIC: I forked the buf's vscode-buf by myself , and adds the bufls integration , so I want to port it to Zed (because Zed's SPEED really shocked me 🚀 )
There is an official Zed Extension for Protobuf.
The source is currently in-tree under: extensions/proto.
It needs better docs, but with some configuration has been reported to work with either buf or protobuf-language-server.