Skip to content

Code action request happens before resolving when selecting action from quick panel #2894

Description

@rchl

Describe the bug

LSP-typescript provides a Delete all unused imports code action. If I trigger it from the hover popup then it is applied correctly but if I trigger it from a quick panel then it does nothing.

The reason is that when selecting code action from the quick panel, the on_activate_async listener is triggered first and it triggers code actions request. Because it happens before "code action resolve" request, LSP-typescript's internal cache of resolvable code actions is cleared and it's not able to provide resolve result for that code action anymore.

Screenshots

Screen.Recording.2026-05-04.at.23.56.41.mov

Environment (please complete the following information):

  • OS: macOS
  • Sublime Text version: 4205
  • LSP version: 2.10.2
  • Language servers used: LSP-typescript

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions