Skip to content

Auto update import paths and "move to a new file" refactoring does not work #51366

@ivanvoznyakovsky

Description

@ivanvoznyakovsky
  • VSCode Version: 1.24.0, 1.25.0-insider
  • OS Version: macOS 10.13.4

Import paths are not updated and it's not possible to refactor a class to a new file with a specific value of files in tsconfig.json.

Here's a test repo.

Without changing anything try to move file app/services/service1.ts to app/services/core folder. No request to update imports hence app/services/index.ts has broken import.
Open app/services/service1.ts and try to refactor out Service2 class to a new file. After clicking Move to a new file nothing happens. Literally nothing.
Now comment out "files": ["./app/app.ts"] in tsconfig.json or replace it with one of commented out lines for files 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

Metadata

Metadata

Assignees

Labels

typescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions