Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support protobuf files import path and auto completion #18

Open
li1234yun opened this issue Jul 29, 2022 · 3 comments
Open

Support protobuf files import path and auto completion #18

li1234yun opened this issue Jul 29, 2022 · 3 comments

Comments

@li1234yun
Copy link

vscode-proto3 support using the import protobuf files.

@disjukr
Copy link
Member

disjukr commented Jul 30, 2022

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

@jalaziz
Copy link

jalaziz commented Sep 1, 2023

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
Copy link

jalaziz commented Sep 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants