Skip to content

vscode.executeCodeActionProvider passes Range to provider although Selection is passed in #77997

@ypresto

Description

@ypresto

Issue Type: Bug

CodeActionProvider receives Selection for range argument as of #49024.
For example, typescript-language-features requires Selection to return CodeActions with Refactor kind.

return rangeOrSelection instanceof vscode.Selection;

But vscode.executeCodeActionProvider command will translate Selection into IRange, so there is no way to get the list of refactoring actions from provider.

range: typeConverters.Range.from(range),

VS Code version: Code - Insiders 1.37.0-insider (6d82826, 2019-07-26T05:32:08.468Z)
OS version: Darwin x64 18.6.0

Metadata

Metadata

Assignees

Labels

apibugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions