typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Renaming/moving file breaks imports

Open johnnycheng0210 opened this issue 2 months ago • 4 comments

Steps to reproduce

Within the same ts project: foo.ts

import { baz } from `./bar`
...

bar.ts

export const baz = 'true'

When bar.ts is renamed (or moved) to anything else, bar2.ts for example, and we update the import in foo.ts to bar2.ts we get the below errors:

bar2.ts is not listed within the file list of project
Projects must list all files or use an 'include' pattern. (ts6307)

Behavior with [email protected]

In typescript 5.8 this works fine - the import works successfully

Behavior with tsgo

The above errors happen.

johnnycheng0210 avatar Oct 14 '25 23:10 johnnycheng0210