Skip to content

Commit b7d5e00

Browse files
committed
fix: kept some commnts
1 parent cd63bd4 commit b7d5e00

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

java/src/processing/mode/java/lsp/PdeAdapter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)