Repository navigation
Make LS checkers time out after being idle, segment based on use (take 2) - #3435
Conversation
There was a problem hiding this comment.
Pull request overview
Reintroduces an idle-expiring checker pool for the language server, with separate checker “lifetimes” (diagnostics vs temporary queries vs API) to reduce contention, improve cache locality, and preserve stable identity for API handles. This fits into the project system’s program lifecycle management and the LSP/API entrypoints that acquire type checkers.
Changes:
- Add
core.CheckerLifetimeoncontext.Contextand route checker acquisition by lifetime (Temporary/Diagnostics/API). - Replace the project checker pool implementation with a semaphore + idle-timeout cleanup design, plus
Discard()to stop background cleanup when programs are superseded/unreferenced. - Add extensive
checkerpooltests usingtesting/synctest, and plumb checker pool options throughSessionOptions.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/project/snapshot.go | Discards checker pools when a program becomes unreferenced (to stop background cleanup). |
| internal/project/session.go | Adds CheckerPoolOptions to session initialization options. |
| internal/project/projectcollectionbuilder.go | Discards old pools on program updates; rebinds project.checkerPool from Program. |
| internal/project/project.go | Uses SessionOptions.CheckerPoolOptions when creating programs/checker pools; simplifies CreateProgramResult. |
| internal/project/checkerpool.go | New checker pool implementation: lifetimes, semaphores, idle cleanup timer, Discard(). |
| internal/project/checkerpool_test.go | New comprehensive tests for routing, affinity, contention, cleanup, discard behavior. |
| internal/lsp/server.go | Marks document diagnostic requests as CheckerLifetimeDiagnostics. |
| internal/core/context.go | Adds checker lifetime context plumbing. |
| internal/compiler/program.go | Exposes Program.GetCheckerPool() for project-side introspection. |
| internal/api/session.go | Routes API type-checker usage to CheckerLifetimeAPI; tags API diagnostics as diagnostics lifetime. |
# Conflicts: # internal/project/checkerpool.go # internal/project/project.go
|
For context, this is a fix for #2115 |
|
It also technically fixes #3638 |
|
This seems ok except for possibly the copilot review comments. But one thing I'm thinking about is that right now we can answer multiple requests for diagnostics at the same time, right? Which this PR forbids. Though I don't know if this actually happens/matters in practice given vscode also sends a bunch of other requests along with diagnostics. |
|
TypeScript Bot (@typescript-bot) test tsserver top200 |
|
Gabriela Araujo Britto (@gabritto) Here are the results of running the top 200 repos with tsserver comparing Something interesting changed - please have a look. Details
|
|
Gabriela Araujo Britto (@gabritto) Here are some more interesting changes from running the top 200 repos suite Detailspanic handling request textDocument/signatureHelp: Debug failure. False expression: Not a subspan. Child: KindLessThanSlashToken, parent: KindJsxAttributeAffected reposvuetifyjs/vuetifyRaw error text:RepoResults8/vuetifyjs.vuetify.rawError.txt in the artifact folder Replay commands: RepoResults8/vuetifyjs.vuetify.replay.txt in the artifact folder
Old server resultLast few requests{"kind":"request","method":"textDocument/rename","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/vuetify/src/components/VSlider/__tests__/VSlider.spec.browser.tsx"},"position":{"line":23,"character":35},"newName":"renamedSymbol"}}
{"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/vuetify/src/components/VSlider/__tests__/VSlider.spec.browser.tsx","version":4381},"contentChanges":[{"range":{"start":{"line":24,"character":5},"end":{"line":24,"character":5}},"text":"."}]}}
{"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/vuetify/src/components/VSlider/__tests__/VSlider.spec.browser.tsx","version":4382},"contentChanges":[{"range":{"start":{"line":24,"character":26},"end":{"line":24,"character":120}},"text":""}]}}
{"kind":"request","method":"textDocument/signatureHelp","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/vuetify/src/components/VSlider/__tests__/VSlider.spec.browser.tsx"},"position":{"line":25,"character":4},"context":{"triggerCharacter":"<","triggerKind":2,"isRetrigger":false}}}
Repro steps#!/bin/bash
git clone https://github.com/vuetifyjs/vuetify --recurse-submodules
git -C "./vuetify" reset --hard 5015ab8065d7da0fc762901b6c13e37b1fe8de5d
pnpm --dir "./vuetify" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/167894/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults8.zip "$downloadUrl"
unzip -p RepoResults8.zip RepoResults8/vuetifyjs.vuetify.replay.txt > vuetifyjs.vuetify.replay.txt
npm install --no-save @typescript/server-replayTo run the repro: # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./vuetify ./vuetifyjs.vuetify.replay.txt <PATH_TO_tsserver.js>panic handling request textDocument/rangeFormatting: Debug failure. False expression: Token end is child endAffected repossequelize/sequelizeRaw error text:RepoResults13/sequelize.sequelize.rawError.txt in the artifact folder Replay commands: RepoResults13/sequelize.sequelize.replay.txt in the artifact folder
Old server resultLast few requests{"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/utils/src/common/get-synchronized-type-keys.ts"},"position":{"line":17,"character":3}}}
{"kind":"request","method":"textDocument/prepareCallHierarchy","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/utils/src/common/get-synchronized-type-keys.ts"},"position":{"line":17,"character":3}}}
{"kind":"request","method":"textDocument/selectionRange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/utils/src/common/get-synchronized-type-keys.ts"},"positions":[{"line":17,"character":3}]}}
{"kind":"request","method":"textDocument/rangeFormatting","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/utils/src/common/get-synchronized-type-keys.ts"},"range":{"start":{"line":17,"character":0},"end":{"line":24,"character":0}},"options":{"tabSize":2,"insertSpaces":false}}}
Repro steps#!/bin/bash
git clone https://github.com/sequelize/sequelize --recurse-submodules
git -C "./sequelize" reset --hard 8260c2905e22f92b8c908023faaf4ad99994981c
yarn --cwd "./sequelize" install --no-immutable --mode=skip-build
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/167894/artifacts?artifactName=RepoResults13&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults13.zip "$downloadUrl"
unzip -p RepoResults13.zip RepoResults13/sequelize.sequelize.replay.txt > sequelize.sequelize.replay.txt
npm install --no-save @typescript/server-replayTo run the repro: # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./sequelize ./sequelize.sequelize.replay.txt <PATH_TO_tsserver.js>Server connection closed prematurely: undefinedAffected repossocketio/socket.ioRaw error text:RepoResults4/socketio.socket.io.rawError.txt in the artifact folder Replay commands: RepoResults4/socketio.socket.io.replay.txt in the artifact folder
Old server resultThe old server completed successfully for this repo. Last few requests{"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/engine.io-client/dist/engine.io.js","version":1813},"contentChanges":[{"range":{"start":{"line":2674,"character":73},"end":{"line":2674,"character":74}},"text":""}]}}
{"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/engine.io-client/dist/engine.io.js"},"position":{"line":2678,"character":42},"verbosityLevel":2}}
{"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/engine.io-client/dist/engine.io.js","version":1814},"contentChanges":[{"range":{"start":{"line":2680,"character":29},"end":{"line":2680,"character":117}},"text":""}]}}
{"kind":"request","method":"textDocument/references","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/engine.io-client/dist/engine.io.js"},"position":{"line":2683,"character":7},"context":{"includeDeclaration":true}}}
Repro steps#!/bin/bash
git clone https://github.com/socketio/socket.io --recurse-submodules
git -C "./socket.io" reset --hard 439a8f669c6788b512dd76011c4476830d67515b
# Install packages (exact steps are below, but it might be easier to follow the repo readme)
npm --prefix "./socket.io" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/whiteboard" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/webtransport" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/webpack-build-server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/webpack-build" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/typescript-example/esm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/typescript-example/cjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/typescript-client-example/esm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/typescript-client-example/cjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/tweet-stream" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/rollup-server-bundle" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/private-messaging" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/private-messaging/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/postgres-adapter-example" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/passport-jwt-example/ts" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/passport-jwt-example/esm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/passport-jwt-example/cjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/passport-example/ts" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/passport-example/esm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/passport-example/cjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/nwjs-example" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/nwjs-example/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/nuxt-example" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/nextjs-pages-router" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/nextjs-app-router" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/nestjs-example" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/express-session-example/ts" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/express-session-example/esm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/express-session-example/cjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/expo-example" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/expo-example/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/es-modules" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/custom-parsers" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
yarn --cwd "./socket.io/examples/create-react-app-example" install --ignore-engines --ignore-scripts --silent
npm --prefix "./socket.io/examples/connection-state-recovery-example/esm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/connection-state-recovery-example/cjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/cluster-traefik/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/cluster-nginx/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/cluster-nginx/client" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/cluster-httpd/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/cluster-haproxy/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/cluster-engine-redis" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/cluster-engine-node-cluster" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/chat" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/basic-websocket-client" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
yarn --cwd "./socket.io/examples/basic-crud-application/vue-client" install --ignore-engines --ignore-scripts --silent
npm --prefix "./socket.io/examples/basic-crud-application/server-postgres-cluster" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/basic-crud-application/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/basic-crud-application/angular-client" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/examples/angular-todomvc" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
yarn --cwd "./socket.io/examples/ReactNativeExample" install --ignore-engines --ignore-scripts --silent
npm --prefix "./socket.io/examples/ReactNativeExample/server" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/docs/socket.io-protocol/v5-test-suite" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/docs/engine.io-protocol/v4-test-suite" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./socket.io/docs/engine.io-protocol/v3-test-suite" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/167894/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults4.zip "$downloadUrl"
unzip -p RepoResults4.zip RepoResults4/socketio.socket.io.replay.txt > socketio.socket.io.replay.txt
npm install --no-save @typescript/server-replayTo run the repro: # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./socket.io ./socketio.socket.io.replay.txt <PATH_TO_tsserver.js>Server connection closed prematurely: undefinedAffected reposnrwl/nxRaw error text:RepoResults14/nrwl.nx.rawError.txt in the artifact folder Replay commands: RepoResults14/nrwl.nx.replay.txt in the artifact folder
Old server resultThe old server completed successfully for this repo. Last few requests{"kind":"notification","method":"textDocument/didOpen","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/nuxt/plugin.ts","languageId":"typescript","version":122,"text":"export {\n createNodes,\n createNodesV2,\n NuxtPluginOptions,\n} from './src/plugins/plugin';\n"}}}
{"kind":"request","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/nuxt/plugin.ts"}}}
{"kind":"request","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/nuxt/plugin.ts"}}}
{"kind":"request","method":"workspace/symbol","params":{"query":"a"}}
Repro steps#!/bin/bash
git clone https://github.com/nrwl/nx --recurse-submodules
git -C "./nx" reset --hard 08f498196bd9eebe3ed6323f72a322f8df5b7318
# Install packages (exact steps are below, but it might be easier to follow the repo readme)
pnpm --dir "./nx" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
pnpm --dir "./nx/tools/documentation/create-embeddings" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/167894/artifacts?artifactName=RepoResults14&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults14.zip "$downloadUrl"
unzip -p RepoResults14.zip RepoResults14/nrwl.nx.replay.txt > nrwl.nx.replay.txt
npm install --no-save @typescript/server-replayTo run the repro: # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./nx ./nrwl.nx.replay.txt <PATH_TO_tsserver.js>Server connection closed prematurely: undefinedAffected reposcontinuedev/continueRaw error text:RepoResults11/continuedev.continue.rawError.txt in the artifact folder Replay commands: RepoResults11/continuedev.continue.replay.txt in the artifact folder
Old server resultThe old server completed successfully for this repo. Last few requests{"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/manual-testing-sandbox/next-edit/next-edit-10-5-sol.ts","version":194},"contentChanges":[{"range":{"start":{"line":488,"character":7},"end":{"line":488,"character":7}},"text":"+"}]}}
{"kind":"request","method":"textDocument/signatureHelp","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/manual-testing-sandbox/next-edit/next-edit-10-5-sol.ts"},"position":{"line":501,"character":65},"context":{"triggerCharacter":",","triggerKind":2,"isRetrigger":false}}}
{"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/manual-testing-sandbox/next-edit/next-edit-10-5-sol.ts","version":195},"contentChanges":[{"range":{"start":{"line":533,"character":33},"end":{"line":533,"character":52}},"text":""}]}}
{"kind":"request","method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/manual-testing-sandbox/next-edit/next-edit-10-5-sol.ts"},"position":{"line":534,"character":21}}}
Repro steps#!/bin/bash
git clone https://github.com/continuedev/continue --recurse-submodules
git -C "./continue" reset --hard cb273098d968906d25ee737b454f0b5f13ea2482
# Install packages (exact steps are below, but it might be easier to follow the repo readme)
npm --prefix "./continue" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/terminal-security" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/openai-adapters" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/llm-info" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/hub" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/fetch" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/continue-sdk" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/continue-sdk/typescript" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/continue-sdk/typescript/api" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/config-yaml" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/packages/config-types" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/manual-testing-sandbox/nested-folder" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/gui" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/extensions/vscode" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/extensions/cli" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/docs" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/core" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/core/vendor" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/core/vendor/modules/@xenova/transformers" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/binary" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/binary/pkgJson/win32-x64" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/binary/pkgJson/win32-arm64" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/binary/pkgJson/linux-x64" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/binary/pkgJson/linux-arm64" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/binary/pkgJson/darwin-x64" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./continue/binary/pkgJson/darwin-arm64" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/167894/artifacts?artifactName=RepoResults11&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults11.zip "$downloadUrl"
unzip -p RepoResults11.zip RepoResults11/continuedev.continue.replay.txt > continuedev.continue.replay.txt
npm install --no-save @typescript/server-replayTo run the repro: # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./continue ./continuedev.continue.replay.txt <PATH_TO_tsserver.js> |
|
This PR is interacting poorly with the ID fixing, for some reason. Looking into it |
|
TypeScript Bot (@typescript-bot) test it |
|
Starting jobs; this comment will be updated as builds start and complete.
|
| // original symbol or an instantiated copy can depend on incidental checker cache state (see | ||
| // instantiateSymbol, whose reuse shortcut is gated on the type already being resolved), so unwrap | ||
| // instantiations here to keep "same reference" answers deterministic. | ||
| if c.getMergedSymbol(c.resolveSymbol(c.getMergedSymbol(c.getTargetSymbol(s1)))) == c.getMergedSymbol(c.resolveSymbol(c.getMergedSymbol(c.getTargetSymbol(s2)))) { |
There was a problem hiding this comment.
This is a latent bug. In Strada, we of course only used one checker, so if we are doing a quick fix for a diagnostic, we must have checked it, and therefore the caches are populated. But now, we serve fixes through a fresh checker, and it has not walked the tree and has not cached things, and so we don't get reference equality like we expect.
Copilot did a lot of print debugging to get here. It's a little unclear if this is a "good" fix, or if there's an even deeper root cause.
Maybe Wesley Wigham (@weswigham) has a better clue; this is entirely reproducible on the commit before this code was added.
|
TypeScript Bot (@typescript-bot) test it |
|
Jake Bailey (@jakebailey) Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jake Bailey (@jakebailey) Here are the results of running the top 400 repos with tsc comparing Everything looks good! |
* origin/main: Make LS checkers time out after being idle, segment based on use (take 2) (microsoft#3435) Fix external helper crash after module-status updates (microsoft#3994) Allow LSP server to use builtin watcher on Windows and macOS (microsoft#4288) Rebuilt CLI watcher around new `fswatch` package (microsoft#4026) Fix stack overflow crash in base constraint resolution (microsoft#4242) # Conflicts: # internal/project/session.go
Fixes #2115
This brings back #3363, which I think should be safe after #3429?
Fixes #2115