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.
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.
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.
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.