Skip to content

Commit

Permalink
sort unique @javaclass suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 5, 2024
1 parent 2ee93c2 commit 2493294
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,6 @@ CodeAction removeJavaClass(FunctionDeclaration decl) = action(
);
list[CodeAction] javaClassProposals(FunctionDeclaration decl) = [
action(title="add missing <t>", edits=[changed(decl@\loc.top, [replace(decl.tags@\loc.top(decl.tags@\loc.offset, 0), "<t>\n")])])
| /t:(Tag) `@javaClass<TagString _>` := parseModule(decl@\loc.top)
action(title="add missing <a>", edits=[changed(decl@\loc.top, [replace(decl.tags@\loc(decl.tags@\loc.offset, 0), "<a>\n")])])
| str a <- sort({"<t>" | /t:(Tag) `@javaClass<TagString _>` := parseModule(decl@\loc.top)})
];

0 comments on commit 2493294

Please sign in to comment.