Skip to content

Code actions are not returned when point is on first character in range #838

@bastianbeischer

Description

@bastianbeischer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions