Skip to content

Provide some sort of diagnostics command in TSServer #31592

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

We often get feedback from VS/VS Code users that TSServer is slow, but the amount of time it takes to diagnose the issue is a bit much for them (e.g. enabling logging etc.)

The proposal here is for TSServer to provide some of the same information as --listFiles and --extendedDiagnostics which you can get from the command line. Editors could then open a buffer that could let them and our teams diagnose issues.

Here's an example of what we could return to the editor:

{
    diagnostics: {
        // ...
    },
    compilerOptions: {
        // ...
    },
    files: [
        { filePath: "...", size: 1234 }
    ]
}

The editor could choose to display this however it wants.

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueDomain: TSServerIssues related to the TSServerSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions