Currently using Visual Studio Code for an Angular project, I am in the process of refactoring by moving some interface files from the app to a library. However, when I try to drag and drop the file in VSC, only the references in files that use relative paths are updated. The other references that import the interface using "@core/models" are not being changed.
"@core/models"
For example, if I move the "user.model.ts" file, the references like
import { User } from '../../models/user';
will be updated to import { User } from '../../../../../../libs/mylib/src/lib/models/user';
, but those referencing it as import { User} from '@core/models';
remain untouched.
If I manually select the interface name, right-click, and choose "Find all references," VSC displays all references correctly in the list. With around 300 references to that file, doing this task manually is not ideal.