Closed
Description
π Search Terms
"vscode path alias import"
π Version & Regression Information
- This is the behavior in every version I tried.
β― Playground Link
No response
π» Code
Given some TS project where a folder is mapped using path aliases, e.g. mapping "@app" to the root folder.
import { foo } from '@app/bar/folder/module'
Move the folder folder
to a different parent, e.g. baz
, using VSCode.
π Actual behavior
The imports referencing the moved files are not updated when the VScode setting typescript.tsserver.experimental.useVsCodeWatcher
is enabled.
When disabling the setting, the behavior is as expected (see below).
π Expected behavior
The import referencing the module should be updated automatically to
import { foo } from '@app/baz/folder/module'
Additional information about the issue
See https://github.com/Bunkerbewohner/vscode-path-alias-problem for a reproduction repo.