Moving files or folders in a monorepo setup does not adapt imports #59136
Open
Description
opened on Jun 17, 2024
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.90.0
- OS Version: Installed in Windows 10, Working in WSL 2 (Ubuntu 22.04)
Steps to Reproduce:
- Create a monorepo setup that uses npm workspaces and typescript project references.
- Create imports across workspace packages, e.g. import from @packageName.
- Move a file or a folder that gets imported in various packages.
Result: Not all imports get adapted, you have to correct them manually. Especially imports in packages that are not involved in the move (other than source or target package) do not get adapted.
Expectation: All imports that reference the moved file or folder should get adapted automatically.
I really love VS Code but move refactorings are not really supported at the moment. IMHO this is a basic feature for a code editor and should also be supported for monorepo setups. I know several colleagues that moved away from VSCode to Webstorm for this reason.
Activity