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.
Hi,
I have a proto folder at
/Users/userx/project/protoand am trying to import google types from:/Users/userx/google/proto. For the sake of the issue, lets say I am trying to importdate.protofrom/Users/userx/google/proto/google/type/date.proto.I have set my
--proto_pathappropriately, so the imports do not give me errors (ie. they point to the correct google files). Here is my--proto_pathin settings.json:Below is my example code:
However, when I try to
Go to definitionorPeek definitionon my import line, I get the errorNo 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 Definitionfor imports inside of my/Users/userx/project/protodirectory, but as soon as I want to step out of that directory, I can not Go to or Peek.