(This issue contains more details, lsp-logs and screenshots here:)
emacs-lsp/lsp-mode#3144
In C++ in the following example program:
int main(int argc, char** argv) {
int abc = 3;
abcd = 4;
return 0;
}
The language server (ccls) provides FixIt code actions for the misspelled variable name "abcd". However they only show up if I move point over the second letter of the misspelled variable, in this case "b". Please see the linked issue for screenshots with illustration and lsp logs.
What we found is that ccls does not correctly respond to the codeAction request when point is on "a", but does respond when point is on "b".