can not go to defination in some cases.
can not go to defination in some cases.
-
case1: import package from other proto file not in current path but in --proto_path=proto/path; like:
import "api/file.proto";can not use "go to defination" to openapi/file.protoin editor; -
case2: import package from other proto file, package name is
api; like:api.SomeRequest req = 1;can not go to the messageSomeRequestdefination; -
case3: message name in map; like:
map<string, SomeMessage> msg_map = 1;ormap<SomeMessage, string> msg_map = 1;can not go to the messageSomeMessagedefination; -
case4: in rpc define, the stream request; like:
rpc GetMessage (stream GetMessageReq) returns (stream GetMessageRsp);can not go to the messageGetMessageReqorGetMessageRspdefination;
In all this case, I can use the proto3 plugin's command Compile This Proto to compile this proto file with no error information.
in addition those case, I find a new case:
if you write a comment after the statement, you could not go to the Message definatioin;
like: SomeMessage msg = 1; // I'm a comment
can not go to the message SomeMessage defination;