zed-industries / extensions

Extensions for the Zed editor
926 stars 411 forks source link

Protobuf #146

Open JosephTLyons opened 2 years ago

JosephTLyons commented 2 years ago

Check for existing issues

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.

TerminalFi commented 2 years ago

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/

aybabtme commented 1 year ago

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

SomeoneToIgnore commented 9 months ago

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

The language server is not added yet.

JosephTLyons commented 9 months ago

Syntax highlighting is available in Zed v0.121.0.

scbizu commented 2 months ago

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