pbkit / vscode-pbkit

VSCode plugin for Protobuf. Syntax highlight, goto definition and autocompletion.
https://marketplace.visualstudio.com/items?itemName=pbkit.vscode-pbkit
MIT License
25 stars 3 forks source link

Support protobuf files import path and auto completion #18

Open li1234yun opened 2 years ago

li1234yun commented 2 years ago

vscode-proto3 support using the import protobuf files.

disjukr commented 2 years ago

pbkit lsp supports buf workspace https://docs.buf.build/reference/workspaces#configuration try creating a buf.work.yaml file

jalaziz commented 1 year ago

I tried using the pbkit lsp with buf and I can't seem to get it to support auto-completion or "Go To Definition" for imports. I tried looking for pbkit logs, but couldn't find anything meaningful.

jalaziz commented 1 year ago

Update: Got it to work by placing the buf.work.yaml at the root of the workspace.

It would be great if a buf.work.yaml wasn't strictly required (i.e. detect buf.yaml too) and it didn't have to be at the workspace root.

What doesn't work though is: