vscode-buf icon indicating copy to clipboard operation
vscode-buf copied to clipboard

Support a protobuf language server

Open ryanberckmans opened this issue 1 year ago • 7 comments

Hi, it would be terrific if this package could bundle in a protobuf language server that, for example, supports jumping to a symbol definition in an import file.

Currently, I am using this package for linting and pbkit.vscode-pbkit for the language server. However the pbkit language server isn't working for me, and I'd prefer to remove pbkit and run everything through buf.

How do you jump to proto symbol definition in your editors?

ryanberckmans avatar Jul 12 '24 16:07 ryanberckmans

I am doing the same things but migrate vscode-proto3 to buf , there is a (currently not active) lsp server for buf supporting symbol definition , but currently have no integration in vscode-buf

scbizu avatar Jul 14 '24 06:07 scbizu

You can try my fork , I impl the vscode definition provider via bufls , but it is based on the unstable feature , I prefer not to PR to upstream.

scbizu avatar Jul 16 '24 15:07 scbizu

fyi. https://github.com/pbkit/vscode-pbkit/issues/25#issuecomment-2384698361

disjukr avatar Oct 01 '24 16:10 disjukr

We don't support the above library - we're working on adding LSP support to VSCode here, we'll keep you updated.

bufdev avatar Oct 01 '24 16:10 bufdev

@bufdev The LSP server implementation is better , there are other editors like Zed could integrate it as well , they are also looking for the solutions for protobuf lsp

scbizu avatar Oct 02 '24 07:10 scbizu

We just merged an experimental LSP server via "buf beta lsp", we'll have more details soon, it's still a work in progress.

bufdev avatar Oct 02 '24 12:10 bufdev

@ryanberckmans I've released vscode-pbkit v0.0.8. While you may use vscode-buf later, for now, you can use 'Go to Definition' in vscode-pbkit with the buf v2 configuration. If you were already using v1 or v1beta1 config, it should have been working well.

disjukr avatar Oct 05 '24 18:10 disjukr

Very excited about this feature! Are there any updated? :)

Thank you!

antspy avatar May 03 '25 08:05 antspy

We now have a new version of the extension available through pre-release that uses our LSP, and it will be available on general release soon! Closing this issue, thank you!

doriable avatar Aug 25 '25 13:08 doriable