Skip to content

Renaming/moving file breaks imports #1882

@johnnycheng0210

Description

@johnnycheng0210

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions