-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Auto update import paths and "move to a new file" refactoring does not work #51366
Comments
(Experimental duplicate detection) |
For update paths: When you set The move to file issue is a bug. I've opened microsoft/TypeScript#24757 to track this |
how is this possible? isn't it that by setting |
it's not a solution but rather a workaround on the bug that for some reason a file is not resolved to be included in the project. |
main purpose of |
Import paths are not updated and it's not possible to refactor a class to a new file with a specific value of
files
intsconfig.json
.Here's a test repo.
Without changing anything try to move file
app/services/service1.ts
toapp/services/core
folder. No request to update imports henceapp/services/index.ts
has brokenimport
.Open
app/services/service1.ts
and try to refactor outService2
class to a new file. After clickingMove to a new file
nothing happens. Literally nothing.Now comment out
"files": ["./app/app.ts"]
intsconfig.json
or replace it with one of commented out lines forfiles
and try to do all the above. All should work as expected.Does this issue occur when all extensions are disabled?: Yes
Does this issue occur in insiders build?: Yes
The text was updated successfully, but these errors were encountered: