Skip to content

vscode.executeCodeActionProvider sometimes returns code actions with missing commands #86403

@DanTup

Description

@DanTup

Periodically in test runs, I see an issue where vscode.executeCodeActionProvider returns code actions that are missing their command (resulting in Cannot read property 'command' of undefined when I do codeAction.command.command - my code action never returns anything without a command). This came up before in #45124 but I think that was a different bug as this one is intermittent.

I had a similar issue about CodeLens doing the same #79805 which was a race condition. The fix looks like it was applied only on CodeLens code, so I wonder if this is the same issue and needs a similar fix applying here? @jrieken

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codeeditor-code-actionsEditor inplace actions (Ctrl + .)info-neededIssue requires more information from posterwont-fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions