devkanro / intellij-protobuf-plugin

IntelliJ-based IDEs Protobuf Language Plugin that provides Protobuf language support.
Apache License 2.0
83 stars 12 forks source link

Plugin not supports field reservation #227

Closed ShuffleBoy closed 5 months ago

ShuffleBoy commented 10 months ago

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;
}

2) The plugin doesn't recognize field reservations (as mentioned in language guide https://protobuf.dev/programming-guides/proto3/#fieldreserved) изображение

devkanro commented 10 months ago

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 commented 5 months ago

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