apex-tmLanguage icon indicating copy to clipboard operation
apex-tmLanguage copied to clipboard

Using final with method parameters causes highlighting issue

Open GeorgePreece opened this issue 3 years ago • 0 comments

Details

Using final with method parameters causes a highlighting issue where, final is scoped with storage.type.apex and the type is scoped with entity.name.variable.parameter.apex. Essentially it recognises the keyword final as the type, the type itself becomes the variable name and the variable is un-scoped.

Repro

void execute(Object arg) {
    //
}

void execute(final Object arg) {
    //
}

image

GeorgePreece avatar Jan 30 '22 13:01 GeorgePreece