Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e6e968b0f |
@@ -136,7 +136,10 @@ public class CodeActionHandler {
|
||||
CodeAction action = new CodeAction("Insert " + conversionHelper.cleanType(typeInsert.getInsertString()));
|
||||
action.setKind(CodeActionKind.QuickFix);
|
||||
action.setEdit(edit);
|
||||
actions.add(Either.forRight(action));
|
||||
|
||||
if(!actions.stream().map(el -> el.getRight().getTitle()).toList().contains(action.getTitle())){
|
||||
actions.add(Either.forRight(action));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logService.log("Error creating Actions, returning empty List. The Error was: " + e.getMessage(), MessageType.Error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user