File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
java/src/processing/mode/java/lsp Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -308,13 +308,13 @@ CompletionItem convertCompletionCandidate(CompletionCandidate c) {
308308 item .setInsertTextFormat (InsertTextFormat .Snippet );
309309
310310 CompletionItemKind kind = switch (c .getType ()) {
311- case 0 -> CompletionItemKind .Class ;
312- case 1 -> CompletionItemKind .Constant ;
313- case 2 -> CompletionItemKind .Function ;
314- case 3 -> CompletionItemKind .Class ;
315- case 4 -> CompletionItemKind .Method ;
316- case 5 -> CompletionItemKind .Field ;
317- case 6 -> CompletionItemKind .Variable ;
311+ case 0 -> CompletionItemKind .Class ; // PREDEF_CLASS
312+ case 1 -> CompletionItemKind .Constant ; // PREDEF_FIELD
313+ case 2 -> CompletionItemKind .Function ; // PREDEF_METHOD
314+ case 3 -> CompletionItemKind .Class ; // LOCAL_CLASS
315+ case 4 -> CompletionItemKind .Method ; // LOCAL_METHOD
316+ case 5 -> CompletionItemKind .Field ; // LOCAL_FIELD
317+ case 6 -> CompletionItemKind .Variable ; // LOCAL_VARIABLE
318318 default -> throw new IllegalArgumentException ("Unknown completion type: " + c .getType ());
319319 };
320320 item .setKind (kind );
You can’t perform that action at this time.
0 commit comments