Allow prepareRename to return ranges that do not include original position #58907
Labels
api
feature-request
Request for new features or functionality
rename
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Problem
TypeScript would like to support renaming files by hitting F2 anywhere in the import path.
Here, hitting F2 anywhere in in the string
'./dir1/dir2/file'
should trigger a rename only on thefile
part of the path. However, inprepareRename
, we currently can't return rename ranges that do not include this original rename position. This means that we cannot support hitting F2 anywhere on `'./dir1/dir2/``Proposal
Relax this restriction, either eliminating it entirely or perhaps only requiring the rename range to be on the same line as the original position
The text was updated successfully, but these errors were encountered: