Skip to content

Support tsconfig.app.json as a recognised project config #966

@domvo

Description

@domvo

Issue Overview

Many Angular / Nx workspaces keep their compiler options in tsconfig.app.json, while the root-level tsconfig.json only contains build references.

typescript-language-server starts tsserver with its default project discovery logic, so it always loads the nearest file literally named tsconfig.json and ignores the options in tsconfig.app.json. This leads to incorrect diagnostics, auto-imports and inlay hints inside the editor.

Expected behaviour

Provide a way, CLI flag, initializationOptions, or automatic detection, for the language server to ask tsserver to treat tsconfig.app.json (or any user-specified filename) as the primary project file.

Actual behaviour

No such override exists. The server loads tsconfig.json and never reads the settings in tsconfig.app.json.

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