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

Option should be allowed as a top level noun

Open Nokel81 opened this issue 4 years ago • 1 comments

I have something similar to the following in a .proto file:

option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
  ...
};

This is at the "top level" (ie, not in a service or rpc block) but this does labels it an error. However, if I compile the proto file into .go code and a swagger definition it does not fail.

Nokel81 avatar Nov 19 '19 18:11 Nokel81

Currently, options are reformatted this way:

option(grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
  ...
};

NOTE missing space option( this compiles just fine!

Although this is wrecking highlighting in subsequent RPC methods.

jozuenoon avatar Oct 19 '20 12:10 jozuenoon