Skip to content

Add support for code actions #1

@remcohaszing

Description

@remcohaszing

LSP supports code actions. CodeMirror supports diagnostic actions. These are similar, but not the same.

CodeMirror actions are attached onto the diagnostic.

LSP code actions are requested on a range and receive all related diagnostics which overlap with that range. Also these code actions can be incomplete, in which case they need to be resolved. The title is always available though.

We should find a way to make this compatible. Quick thought: When getting validations, perform a code action lookup for every diagnostic. Resolve the code action when invoked.

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