microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.29k stars 12.39k forks source link

useVsCodeWatcher interferes with updating typescript @aliased imports paths on file or folder moves #59952

Open ShravanSunder opened 1 week ago

ShravanSunder commented 1 week ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Make sure you have useVsCodeWatcher enabled in settings
  2. Create a monorepo
  3. have a folder with files that are imported by other files with tsconfig aliases
  4. Rename a folder in monorepo.
  5. ts and tsconfig has an error. References are not renamed

Renames works if useVsCodeWatcher fine is disabled. There are no errors with folder renames. Unfortunately this experimental feature is enabled by default.

See reference issues:

Related issues

sheetalkamat commented 23 hours ago

Need the repro we can clone and steps to run on that repro to be able to investigate this. The repro steps are pretty vague at this point.

Also pls test with typescript nightly to see if this is resolved or not as we fixed few issues in the area.