intellij-protobuf-plugin icon indicating copy to clipboard operation
intellij-protobuf-plugin copied to clipboard

Plugin not supports field reservation

Open ShuffleBoy opened this issue 1 year ago • 1 comments

  1. Create a proto file and paste
syntax = "proto3";

message Test{
    reserved 2;
    reserved "to_be_reserved";
    
    int32 field = 1;
    int32 to_be_reserved = 3;
}
  1. The plugin doesn't recognize field reservations (as mentioned in language guide https://protobuf.dev/programming-guides/proto3/#fieldreserved) изображение

ShuffleBoy avatar Jan 16 '24 07:01 ShuffleBoy

Currently we support those symbol:

syntax = "proto3";

message Test{
    reserved 2;
    reserved to_be_reserved;

    int32 field = 1;
    int32 to_be_reserved = 3;
}

I will update the AST to support this.

devkanro avatar Jan 23 '24 04:01 devkanro

Will be resolved in 2.0.0, currently we are running 2.0.0-EAP, you can join us to test it.

devkanro avatar Jun 10 '24 06:06 devkanro