Skip to content

Adopt code actions ranges for refactorings in TS #57264

Closed
@justschen

Description

@justschen

see API proposal here: microsoft/vscode#199608

vs code tracking: microsoft/vscode#204040

The API was made since often times in refactorings such as with extract or move too... it's not always clear what part of code or what part of the file the actions will apply to. By allowing contributed Code Actions to provide one or more ranges (Range[]), the range will be highlighted to show the user what will be changed.

All we need to provide is a Range[] of affected code. For refactorings, this range would be the code in the current file that will be effected by the refactoring.

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueFix AvailableA PR has been opened for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions