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

Support protobuf files import path and auto completion

Open li1234yun opened this issue 3 years ago • 3 comments

vscode-proto3 support using the import protobuf files.

li1234yun avatar Jul 29 '22 01:07 li1234yun

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

disjukr avatar Jul 30 '22 08:07 disjukr

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 avatar Sep 01 '23 21:09 jalaziz

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:

  • auto-completion using a package prefix (e.g. foo.v1. ...)
  • auto-completion of buf-imports deps

jalaziz avatar Sep 01 '23 22:09 jalaziz