Skip to content

Triggering a code action with empty range #38

@lieryan

Description

@lieryan

There is one usability issue with Neovim's implementation of code action. If you hadn't selected a range, Neovim's code action would trigger the code action with an empty range (start position = end position = cursor position) while other Vim lsp clients would send a range between the current cursor position to the end of line. This means that triggering a code action with nothing selected is always going to fail in Neovim LSP.

AFAIK, neither of these behavior are specified in the LSP spec itself so they're both reasonable behavior for clients to do, but this is an issue that can be fixed on our side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions