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

"Go to Definition" support for multiple directories #153

Open
lutherjohnrichards opened this issue Feb 9, 2023 · 0 comments
Open

"Go to Definition" support for multiple directories #153

lutherjohnrichards opened this issue Feb 9, 2023 · 0 comments

Comments

@lutherjohnrichards
Copy link

Hi,

I have a proto folder at /Users/userx/project/proto and am trying to import google types from: /Users/userx/google/proto. For the sake of the issue, lets say I am trying to import date.proto from /Users/userx/google/proto/google/type/date.proto.

I have set my --proto_path appropriately, so the imports do not give me errors (ie. they point to the correct google files). Here is my --proto_path in settings.json:

"protoc": {
        "options": [
            "--proto_path=/Users/userx/google/proto",
        ]
    },

Below is my example code:

syntax = "proto3";

package somepackage;

import "google/type/date.proto";

However, when I try to Go to definition or Peek definition on my import line, I get the error No definition found for date.proto.

I am aware of #12, but this is not a solution as this issue only covers local imports, meaning I am able to Go to Definition for imports inside of my /Users/userx/project/proto directory, but as soon as I want to step out of that directory, I can not Go to or Peek.

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

1 participant