lsp4jakarta icon indicating copy to clipboard operation
lsp4jakarta copied to clipboard

Disposer method quick fixes remove all annotations instead of mutually exclusive ones.

Open mrglavas opened this issue 1 year ago • 1 comments

Pull request https://github.com/eclipse/lsp4jakarta/pull/511 added a quick fix which removes all three annotations from a parameter when some of the annotations are in conflict. E.g. "@Disposes @Observes @ObservesAsync String name" There should be two quick fixes, one that removes @Disposes and one that removes @Observes and @ObservesAsync.

Current behaviour (screenshots are examples from IntelliJ, but this applies to LSP4Jakarta):

Diagnostic: image

Quick fix: image

Pull request https://github.com/eclipse/lsp4jakarta/pull/539 temporarily disables these quick fixes until this issue is resolved.

mrglavas avatar Nov 15 '24 14:11 mrglavas

Once the quick fixes are added correctly, make sure to re-enable the associated unit tests as part of this issue.

TrevCraw avatar Nov 15 '24 15:11 TrevCraw

Diagnostics targeted: image image

archana-1924 avatar Aug 12 '25 09:08 archana-1924