Closed
Description
Bug Report
🔎 Search Terms
performance vs code stale error switch branches git
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about code editing
💻 Code
Video demonstration: https://www.loom.com/share/b8accd596ea74f16ae41f524e6e1497f
TS server log: tsserver.log
- Clone and checkout https://github.com/unsplash/unsplash-web/tree/typescript-stale-errors-a, branch
typescript-stale-errors-a
. This is a private repository but I believe some members of the TS team already have access from debugging previous issues. If you don't have access, please send me your email address so I can provide access (TS team members only). - Run
yarn
- Open VS Code and navigate to
app/routes/Users/components/UserStatsSubRoute/UserStatsSubRoute.tsx
- Wait for VS Code to finish initialising TS (no errors)
- Switch branches:
git checkout typescript-stale-errors-b
🙁 Actual behavior
Stale errors in the open file for about 2 minutes.
🙂 Expected behavior
- No stale errors.
- Some indication that TypeScript is updating in the background.
- The update shouldn't take 2 minutes. Restarting TS server only takes ~20 seconds in comparison.
Related: microsoft/vscode#122928