Skip to content

Stale errors for a few minutes after switching branches #44066

Closed
@OliverJAsh

Description

@OliverJAsh

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

  1. 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).
  2. Run yarn
  3. Open VS Code and navigate to app/routes/Users/components/UserStatsSubRoute/UserStatsSubRoute.tsx
  4. Wait for VS Code to finish initialising TS (no errors)
  5. 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

Metadata

Metadata

Assignees

Labels

Working as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions