lsp4jakarta
lsp4jakarta copied to clipboard
Enhance "CodeActionHandler.codeAction"
- Create QuickFix class instances on demand - current implementation creates all instances at once.
- Add Null check for each QuickFix
getCodeActionsAPI call. - If all
Diagnostic codesare unique, consider to useelse ifto avoid extraifchecks. - Assign
diagnostic.getCode().getLeft()to a variable.