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

can not go to defination in some cases.

Open nicoxb opened this issue 6 years ago • 1 comments

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 open api/file.proto in editor;

  • case2: import package from other proto file, package name is api; like: api.SomeRequest req = 1; can not go to the message SomeRequest defination;

  • case3: message name in map; like: map<string, SomeMessage> msg_map = 1; or map<SomeMessage, string> msg_map = 1; can not go to the message SomeMessage defination;

  • case4: in rpc define, the stream request; like: rpc GetMessage (stream GetMessageReq) returns (stream GetMessageRsp); can not go to the message GetMessageReq or GetMessageRsp defination;

In all this case, I can use the proto3 plugin's command Compile This Proto to compile this proto file with no error information.

nicoxb avatar Oct 24 '19 11:10 nicoxb

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;

nicoxb avatar Oct 24 '19 13:10 nicoxb