Adopt code actions ranges for refactorings in TS #57264
Labels
Committed
The team has roadmapped this issue
Fix Available
A PR has been opened for this issue
Suggestion
An idea for TypeScript
Milestone
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
ormove 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.The text was updated successfully, but these errors were encountered: