bwalter / aidl-lsp

AIDL Language Server Protocol (LSP) server
MIT License
3 stars 1 forks source link

LSP server doesn't recognise nested enums #5

Open qwandor opened 2 years ago

qwandor commented 2 years ago

AIDL allows enums to be nested under parcelables, but the LSP server doesn't accept it. E.g.:

package test;

parcelable TestWithEnum {
    enum TestEnum {
        ONE,
        TWO,
    }

    TestEnum number;
}
qwandor commented 2 years ago

The syntax highlighter grammar also has a similar bug, I've filed https://github.com/google/aidl-language/issues/2 for that.

bwalter commented 2 years ago

Thanks! As far as I know, it is part of the (larger) feature set of Android T (nested type declarations).