extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Protobuf

Open JosephTLyons opened this issue 3 years ago • 5 comments

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.

JosephTLyons avatar Oct 27 '22 17:10 JosephTLyons

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/

TerminalFi avatar Oct 30 '22 08:10 TerminalFi

Noting also that the author of https://github.com/mitchellh/tree-sitter-proto is the founder of Hashicorp and pretty solid engineer.

aybabtme avatar Mar 08 '23 18:03 aybabtme

Initial syntax highlights and outlines were added with https://github.com/zed-industries/zed/pull/6748

The language server is not added yet.

SomeoneToIgnore avatar Jan 30 '24 19:01 SomeoneToIgnore

Syntax highlighting is available in Zed v0.121.0.

JosephTLyons avatar Feb 01 '24 00:02 JosephTLyons

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 🚀 )

scbizu avatar Sep 09 '24 09:09 scbizu

There is an official Zed Extension for Protobuf. Screenshot 2024-12-10 at 18 43 33

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.

notpeter avatar Dec 10 '24 23:12 notpeter