Fix VSCode IntelliSense Not Working with TypeScript - Git Detached HEAD Explained and How to Fix-How to Recover Stashed Changes in Git Detached HEAD

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.