Skip to content

Watch tsconfig extends for changes #1529

@dummdidumm

Description

@dummdidumm

Description

In SvelteKit, a generated tsconfig lives in .svelte-kit/tsconfig.json. This file doesn't exist initially (before you run dev or prepare for the first time) so you see errors in your code. These go away once the extended tsconfig exists, but we don't watch for changes like this, so people have to restart the language server in order to see that.

The quick fix is to handle this specific case, but it would be great if we could generalize this to watch tsconfig files that others extend from and react to changes there.

Proposed solution

Dig into the TS code and see how they do it, and see if this can be applied at our code, too.

Alternatives

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.feature requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions