-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How should we handle directory renames with 'getEditsForFileRename'? #24260
Comments
The code doesn't support this currently, so this is something we'll have to add. I think we're wrapping up ts2.9 today so no time to add it to that. |
Ok, should the API be updated so that we can support this in the future? Or do you think the existing API will work? |
I think we can just use the current function and detect that the path passed in is a directory. |
Good with me. Just one question: what would the |
Right. The 'file' argument doesn't even show up in the |
@andy-ms let's try to get this in the next servicing release 2.9.2 |
For a project:
Where
index.ts
:If the user renames the directory
sub
->sub2
, how should we handle updating the paths using thegetEditsForFileRename
api? Is this something we want to support in V1?I'm concerned that renaming directories may require a call to
getEditsForFileRename
for each file, which will be chattyThe text was updated successfully, but these errors were encountered: