Skip to content

Unnecessary calls to 'codeAction/resolve' on mouse hovers #201871

@dbalek

Description

@dbalek

Type: Bug

Hovering with mouse over a list of available code actions that appears after clicking on a lightbulb displayed in the editor left margin (the same applies for the list of code actions that appears after right click in editor and selecting Source Action...), codeAction/resolve LSP call is invoked for each affected code action. This is not done when cycling the list using keyboard Up/Down when the codeAction/resolve is called only on the code action selected by user as to be performed.
The unnecessary calls to codeAction/resolve (caused by simple mouse hovers) represent a performance problem since the codeAction/resolve call is usually used to compute the edit property of a code action which could by quite costly (that was the reason to introduce the codeAction/resolve to LSP in version 3.16)

VS Code version: Code 1.85.1 (0ee08df, 2023-12-13T09:47:11.635Z)
OS version: Linux x64 6.6.3-1-default
Modes:

Metadata

Metadata

Assignees

Labels

editor-code-actionsEditor inplace actions (Ctrl + .)under-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions