graalvm / vscode-extensions

Universal Permissive License v1.0
31 stars 8 forks source link

Field "can be final" quickfix puts "final" in wrong place. #5

Open shaunsmith opened 3 years ago

shaunsmith commented 3 years ago

Apache NetBeans Language Server: 12.2.2 GraalVM Extension: 0.5.4

When seeing this warning: "Field brandId can be final" with full details below, and selecting the "Make final" quick fix the "final" keyword is not inserted into the correct position. It inserts at the cursor position sometimes, and sometimes in between the type and field name. E.g., "private String final foo".

{ "resource": "/Users/shaun/git/github/shaunsmith/comics/src/main/java/org/comics/model/Issue.java", "owner": "_generated_diagnostic_collectionname#2", "code": "hints:0-text/x-java:org.netbeans.modules.java.hints.threading.Tiny.canBeFinal", "severity": 4, "message": "Field brandId can be final", "startLineNumber": 103, "startColumn": 22, "endLineNumber": 103, "endColumn": 29 }