Skip to content

Implement codeAction/resolve for some of our code actions #3534

Closed
@michaelpj

Description

@michaelpj

LSP allows you to implement codeAction/resolve to fill in details of code actions when the user is considering applying them, rather than immediately when the list of code actions is requested. This has two main advantages:

  • You can delay doing expensive work until you're asked to resolve the code action.
  • You can avoid sending lots of large text edits to the client every time they ask for code actions, even if they won't be used. (This can put pressure on clients JSON handling!)

Doing this properly would probably mean figuring out a way to make it easy to add support for code action resolution. Many of our code actions come from plugins, we'd like to make it as easy as possible for plugin authors to opt in to code action resolution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions