emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

code actions shown for entire line instead of only for issue at point #760

Open eli-tziperman opened 7 months ago

eli-tziperman commented 7 months ago

Here is an example of the issue using lsp-grammarly, where it makes sense to show only actions under point/cursor rather than include all issues in the current line.

image

You see that the code actions shown via completion at the bottom are correct. But the ones in orange from lsp-ui are not. It seems that lsp-ui loops over the entire current line instead of getting actions only for the issue under point.