java.tmbundle icon indicating copy to clipboard operation
java.tmbundle copied to clipboard

Java import directives shown with package names as keywords

Open aeschli opened this issue 9 years ago • 1 comments

From @dgolub on February 12, 2016 22:22

When editing Java in Visual Studio Code, import directives are shown with the package names in blue as if they were keywords. They should be shown in black because they are identifiers.

Copied from original issue: Microsoft/vscode#2987

aeschli avatar Feb 22 '16 09:02 aeschli

The Java tokenizer marks the import identifiers with the scope storage.modifier. It does the same for modifiers like private and public which we want to be marked as keywords.

We are using the tokenizer from https://github.com/textmate/java.tmbundle. A change request would have to be made there.

aeschli avatar Feb 22 '16 09:02 aeschli