Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate differences in type checking of tsc vs tsserver requests #43

Open
typeholes opened this issue Jun 7, 2024 · 0 comments
Open

Comments

@typeholes
Copy link
Collaborator

typeholes commented Jun 7, 2024

As pointed out by microsoft/TypeScript#58337, type checking can proceed in different orders depending on whether it was triggered by a full tsc run or by a tsserver request like getting semantic info.

It would be interesting to trace the tsserver process but there are two obvious downsides:

  1. tracing would add extra overhead when the editor experience is already laggy
    a. we can use a separate tsserver, like we do for the realtime metrics
  2. the tracing code specifically disables recording types when in server mode
    a. this is moot, as we can just monkey path tracing.recordType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant