javavscode icon indicating copy to clipboard operation
javavscode copied to clipboard

Only give relevant quick fixes w.r.t. "Remove unused ..."

Open anthonyvdotbe opened this issue 1 year ago • 1 comments

See the image below. I did quick fix (Ctrl + .) on the variable x in the method run.

  • quick fixes should be unique, there are several occurrences of Remove all unused imports and Remove unused import
  • quick fixes should be useful: the occurrences of Remove unused import don't tell me which import
  • quick fixes should apply to the yellow underlined element, so I'd expect only a single warning in this case: Remove unused "x"

image

anthonyvdotbe avatar Oct 29 '23 14:10 anthonyvdotbe

Raised PR on netbeans: https://github.com/apache/netbeans/pull/7353

Achal1607 avatar May 03 '24 09:05 Achal1607