diff --git a/cmd/protoc-gen-pluginrpc-go/main.go b/cmd/protoc-gen-pluginrpc-go/main.go index 05ce430..34d9733 100644 --- a/cmd/protoc-gen-pluginrpc-go/main.go +++ b/cmd/protoc-gen-pluginrpc-go/main.go @@ -72,7 +72,12 @@ func main() { ParamFunc: flags.Set, }.Run( func(plugin *protogen.Plugin) error { - plugin.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) + plugin.SupportedFeatures = uint64( + pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL | + pluginpb.CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS, + ) + plugin.SupportedEditionsMinimum = descriptorpb.Edition_EDITION_PROTO2 + plugin.SupportedEditionsMaximum = descriptorpb.Edition_EDITION_2024 if err := validate(plugin, flags); err != nil { return err }