镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Provide some sort of diagnostics command in TSServer #31592

Description

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.

Activity

  1. DanielRosenwasser commented on May 25, 2019

    @DanielRosenwasser
    MemberAuthor
  2. DanielRosenwasser commented on Jun 13, 2019

    @DanielRosenwasser
    MemberAuthor

    Things that might be useful

    • Version
    • Options (e.g. quote style)
    • Projects and what they contain
      • Project kinds (inferred, configured, etc.)
      • include/exclude?
      • file list
      • largest file and its size (maybe just sort files by size)
      • number of files
    • number of errors reported
    • open file list
      • size, longest line length
    • GUIDs of project kinds?
  3. DanielRosenwasser commented on Jun 13, 2019

    @DanielRosenwasser
    MemberAuthor

    It sounds like editors can just maintain this information as well. Maybe we don't need to do anything in tsserver.

  4. sheetalkamat commented on Jul 25, 2019

    @sheetalkamat
    Member

    Since there was no work needed here, is it safe to close this?

  5. amcasey commented on Jul 25, 2019

    @amcasey
    Member

    Fine by me. We're tracking the VS work internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CommittedThe team has roadmapped this issueDomain: LS: 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