Skip to content

TSServer: config file diagnostics event not sent if config file changes #10473

Closed
@dbaeumer

Description

@dbaeumer

TypeScript Version: 2.0.0
Code
tsconfig.json

{
    "compilerOptions": {
        "module": "commonjs",
        "aaa": 10
    }
}

The server sends and event

Event received: configFileDiag (0).
Data: {
    "triggerFile": "p:/mseng/VSCode/Playgrounds/ts-2.0/test.ts",
    "configFile": "p:/mseng/VSCode/Playgrounds/ts-2.0/tsconfig.json",
    "diagnostics": [
        {
            "text": "Unknown compiler option 'aaa'."
        }
    ]
}

which is correct. Fix the error in the tsconfig.json and save.

Observe: no configFileDiag update is sent. We either need an event to reqeuest configFileDiag or it should automatically happen when the tsconfig.json file is saved and recognized by the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions