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

highlight numbering gaps

Open daveyostcom opened this issue 4 years ago • 2 comments

message Foo {
  int32 a = 1;
  bool  b = 3;
}

Giving the 3 a different color to point out the numbering gap would be helpful.

daveyostcom avatar Feb 27 '21 22:02 daveyostcom

Do you want to know that the fields are not ordered/contiguous, or that a field number is unused? I can think of reasons for fields to be listed in other than their numeric order, but I suppose each number should be used or reserved. It would probably be an optional inspection, though

jvolkman avatar Feb 28 '21 01:02 jvolkman

Optional would be fine. Just a highlight on a number that is not preceded by itself – 1.

daveyostcom avatar Mar 02 '21 01:03 daveyostcom