Skip to content

Conversation

@gabritto
Copy link
Member

Reverts #59940.

We merged it just to enable internal testing of the prototype implementation, so I'm reverting this for 5.8 RC, and a polished version should go in for 5.9.

@typescript-bottypescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 6, 2025
@typescript-bot
Copy link
Collaborator

Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping @sheetalkamat, @mjbvz, @zkat, and @joj for you. Feel free to loop in other consumers/maintainers if necessary.

@typescript-bot
Copy link
Collaborator

Looks like you're introducing a change to the public API surface area. If this includes breaking changes, please document them on our wiki's API Breaking Changes page.

Also, please make sure @DanielRosenwasser and @RyanCavanaugh are aware of the changes, just as a heads up.

@gabritto
Copy link
MemberAuthor

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 7, 2025

Starting jobs; this comment will be updated as builds start and complete.

CommandStatusResults
test top400✅ Started✅ Results
user test this✅ Started✅ Results
run dt✅ Started✅ Results
perf test this faster✅ Started👀 Results

@typescript-bot
Copy link
Collaborator

@gabritto Here are the results of running the user tests with tsc comparing main and refs/pull/61132/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Hey @gabritto, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@gabritto
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
MetricbaselineprDeltaBestWorstp-value
Compiler-Unions - node (v18.15.0, x64)
Errors3434~~~p=1.000 n=6
Symbols62,39062,390~~~p=1.000 n=6
Types50,39550,395~~~p=1.000 n=6
Memory used194,950k (± 1.02%)193,762k (± 0.81%)~193,107k196,959kp=0.297 n=6
Parse Time1.32s (± 1.03%)1.31s (± 0.84%)~1.30s1.32sp=0.090 n=6
Bind Time0.73s0.73s (± 0.70%)~0.73s0.74sp=0.174 n=6
Check Time9.78s (± 0.14%)9.81s (± 0.29%)~9.77s9.84sp=0.187 n=6
Emit Time2.75s (± 0.65%)2.76s (± 0.85%)~2.73s2.80sp=0.623 n=6
Total Time14.59s (± 0.20%)14.61s (± 0.31%)~14.53s14.65sp=0.335 n=6
angular-1 - node (v18.15.0, x64)
Errors3737~~~p=1.000 n=6
Symbols948,488948,488~~~p=1.000 n=6
Types411,006411,006~~~p=1.000 n=6
Memory used1,225,422k (± 0.00%)1,225,425k (± 0.00%)~1,225,366k1,225,523kp=0.810 n=6
Parse Time6.69s (± 0.93%)6.73s (± 0.55%)~6.65s6.75sp=0.183 n=6
Bind Time1.93s (± 0.71%)1.93s (± 0.53%)~1.92s1.95sp=0.557 n=6
Check Time32.16s (± 0.22%)32.12s (± 0.46%)~31.98s32.38sp=0.294 n=6
Emit Time15.32s (± 0.85%)15.40s (± 0.36%)~15.35s15.49sp=0.148 n=6
Total Time56.09s (± 0.34%)56.17s (± 0.29%)~55.93s56.41sp=0.336 n=6
mui-docs - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,371,9402,371,940~~~p=1.000 n=6
Types846,141846,141~~~p=1.000 n=6
Memory used2,138,901k (± 0.00%)2,138,924k (± 0.00%)~2,138,841k2,139,057kp=0.810 n=6
Parse Time7.31s (± 0.17%)7.31s (± 0.16%)~7.29s7.32sp=0.504 n=6
Bind Time2.49s (± 0.39%)2.49s (± 0.57%)~2.47s2.51sp=0.869 n=6
Check Time73.10s (± 0.46%)72.93s (± 1.17%)~71.29s73.77sp=1.000 n=6
Emit Time0.14s (± 3.60%)0.15s (± 2.75%)~0.14s0.15sp=0.112 n=6
Total Time83.05s (± 0.40%)82.88s (± 1.02%)~81.26s83.71sp=1.000 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,229,3971,228,747-650 (- 0.05%)~~p=0.001 n=6
Types267,085267,002-83 (- 0.03%)~~p=0.001 n=6
Memory used2,362,138k (± 0.01%)2,361,149k (± 0.02%)-990k (- 0.04%)2,360,332k2,361,938kp=0.013 n=6
Parse Time5.24s (± 0.57%)5.23s (± 0.61%)~5.18s5.26sp=0.748 n=6
Bind Time1.81s (± 0.75%)1.82s (± 0.85%)~1.79s1.83sp=0.193 n=6
Check Time35.46s (± 0.24%)35.48s (± 0.42%)~35.31s35.64sp=0.810 n=6
Emit Time3.04s (± 1.11%)3.01s (± 1.06%)~2.95s3.04sp=0.223 n=6
Total Time45.57s (± 0.20%)45.55s (± 0.32%)~45.40s45.74sp=0.810 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,229,3971,228,747-650 (- 0.05%)~~p=0.001 n=6
Types267,085267,002-83 (- 0.03%)~~p=0.001 n=6
Memory used2,917,309k (±12.89%)3,158,807k (± 0.02%)~3,158,248k3,159,697kp=0.471 n=6
Parse Time6.91s (± 2.15%)7.02s (± 0.75%)~6.98s7.12sp=0.199 n=6
Bind Time2.14s (± 1.24%)2.13s (± 0.97%)~2.10s2.15sp=0.257 n=6
Check Time42.88s (± 0.40%)42.93s (± 0.19%)~42.78s43.00sp=0.575 n=6
Emit Time3.56s (± 2.45%)3.44s (± 2.66%)~3.33s3.54sp=0.054 n=6
Total Time55.50s (± 0.47%)55.52s (± 0.32%)~55.23s55.78sp=0.936 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols263,074263,031-43 (- 0.02%)~~p=0.001 n=6
Types106,881106,875-6 (- 0.01%)~~p=0.001 n=6
Memory used441,319k (± 0.02%)441,252k (± 0.03%)~441,129k441,440kp=0.128 n=6
Parse Time3.56s (± 0.95%)3.55s (± 1.25%)~3.49s3.61sp=0.936 n=6
Bind Time1.32s (± 0.75%)1.32s (± 0.89%)~1.30s1.33sp=1.000 n=6
Check Time19.04s (± 0.38%)18.98s (± 0.40%)~18.90s19.11sp=0.199 n=6
Emit Time1.53s (± 0.92%)1.52s (± 0.87%)~1.50s1.53sp=0.392 n=6
Total Time25.45s (± 0.30%)25.37s (± 0.46%)~25.24s25.55sp=0.229 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors7070~~~p=1.000 n=6
Symbols226,113226,113~~~p=1.000 n=6
Types94,48894,488~~~p=1.000 n=6
Memory used371,860k (± 0.05%)371,780k (± 0.04%)~371,669k372,058kp=0.689 n=6
Parse Time2.89s (± 0.89%)2.87s (± 0.60%)~2.85s2.89sp=0.373 n=6
Bind Time1.58s (± 0.53%)1.59s (± 1.10%)~1.56s1.61sp=0.933 n=6
Check Time16.38s (± 0.23%)16.42s (± 0.33%)~16.37s16.51sp=0.147 n=6
Emit Time0.00s0.00s (±244.70%)~0.00s0.01sp=0.405 n=6
Total Time20.85s (± 0.30%)20.88s (± 0.33%)~20.81s20.99sp=0.572 n=6
vscode - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols3,280,6863,280,686~~~p=1.000 n=6
Types1,128,2841,128,284~~~p=1.000 n=6
Memory used3,354,740k (± 0.01%)3,354,738k (± 0.01%)~3,354,302k3,355,057kp=0.936 n=6
Parse Time14.60s (± 0.47%)14.63s (± 0.56%)~14.51s14.71sp=0.470 n=6
Bind Time4.64s (± 0.60%)4.62s (± 0.42%)~4.60s4.65sp=0.332 n=6
Check Time91.52s (± 3.18%)89.42s (± 1.84%)~88.51s92.76sp=0.066 n=6
Emit Time27.52s (± 8.52%)28.02s (± 2.00%)~27.65s29.11sp=0.936 n=6
Total Time138.28s (± 1.79%)136.69s (± 1.25%)~135.36s139.84sp=0.199 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols293,378293,378~~~p=1.000 n=6
Types119,581119,581~~~p=1.000 n=6
Memory used447,128k (± 0.02%)447,142k (± 0.02%)~447,022k447,323kp=0.810 n=6
Parse Time4.11s (± 0.41%)4.10s (± 0.73%)~4.06s4.14sp=0.744 n=6
Bind Time1.78s (± 1.61%)1.76s (± 0.85%)~1.75s1.79sp=0.510 n=6
Check Time18.76s (± 0.56%)18.82s (± 0.61%)~18.67s18.95sp=0.628 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time24.65s (± 0.40%)24.68s (± 0.41%)~24.55s24.82sp=0.629 n=6
xstate-main - node (v18.15.0, x64)
Errors55~~~p=1.000 n=6
Symbols555,375555,375~~~p=1.000 n=6
Types186,146186,146~~~p=1.000 n=6
Memory used494,532k (± 0.01%)494,507k (± 0.03%)~494,225k494,712kp=1.000 n=6
Parse Time3.40s (± 0.58%)3.39s (± 0.87%)~3.37s3.45sp=0.277 n=6
Bind Time1.18s (± 1.12%)1.19s (± 1.56%)~1.18s1.23sp=0.241 n=6
Check Time19.57s (± 0.18%)19.63s (± 1.11%)~19.45s20.04sp=0.748 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time24.16s (± 0.22%)24.22s (± 0.87%)~24.04s24.61sp=0.872 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
BenchmarkNameIterations
Currentpr6
Baselinebaseline6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@gabritto Here are the results of running the top 400 repos with tsc comparing main and refs/pull/61132/merge:

Everything looks good!

Copy link
Member

@jakebaileyjakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does VS Code need to know to not send this request anymore, or will it "just work" because the extra data will be ignored?

@gabritto
Copy link
MemberAuthor

Does VS Code need to know to not send this request anymore, or will it "just work" because the extra data will be ignored?

Good question, I'll double check.

@mjbvz
Copy link
Contributor

mjbvz commented Feb 7, 2025

@gabritto On the VS Code side we gate our check to TS 5.7 , not specific pre-release version (plus you need the setting enabled). If you're planning to remove this, can you update VS Code to only send this request on TS 5.9+

@gabritto
Copy link
MemberAuthor

@gabritto On the VS Code side we gate our check to TS 5.7 , not specific pre-release version (plus you need the setting enabled). If you're planning to remove this, can you update VS Code to only send this request on TS 5.9+

@mjbvz should I temporarily remove the whole feature from the vscode side as well? I could update it to only send the request for TS 5.9+, but in theory, we'll ship TS 5.9 nightly versions starting next week, and I won't bring this back into TSServer time for that. On the same vein, I'd also have to remove the setting.

@gabritto
Copy link
MemberAuthor

Does VS Code need to know to not send this request anymore, or will it "just work" because the extra data will be ignored?

Good question, I'll double check.

I checked, and it works.

@gabrittogabritto merged commit 34ea32f into mainFeb 7, 2025
32 checks passed
@gabrittogabritto deleted the revert-59940-gabritto/issue59029 branch February 7, 2025 20:44
@mylesmmurphy
Copy link

Hey @gabritto! Really great work on this, very excited to see this coming. I have some feedback / questions related to this that I mentioned here, and felt it might be relevant to your work and would love your feedback. 😄

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@gabritto@typescript-bot@mjbvz@mylesmmurphy@jakebailey