vscode-proto3
vscode-proto3 copied to clipboard
Option should be allowed as a top level noun
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.
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.