Verified Production Fix
[microsoft/vscode] All of a sudden the whole VS code extensions got refreshed on their own.
GH-microsoft/vscode#299929 • Mar 07, 2026
### ROOT CAUSE
The issue arises due to the Extension Host process in VS Code crashing, likely caused by high memory usage or instability from extensions, particularly under heavy load from tasks like Copilot's document enhancement. This leads to VS Code refreshing to recover.
### CODE FIX
1. **Increase Memory Allocation**:
- Edit `~/.config/Code/User/defaults.json` to allocate more memory:
json
{
"window.highMemoryProcessThreshold": 1024,
"window.lowMemoryProcessThreshold": 512
}
This ensures the Extension Host has sufficient memory.
2. **Update GPU Drivers**:
- Install the latest drivers for your Intel GPU to enhance stability:
bash
sudo apt update && sudo apt upgrade && sudo apt install intel-media-ubuntu
3. **Disable or Optimize Extensions**:
- Temporarily disable extensions in `~/.config/Code/User/settings.json` to identify the culprit:
json
"extensions.autoUpdate.enabled": false,
"extensions.updateChannel": "none"
- Use `code --extensions-off` to launch VS Code without extensions for testing.
4. **Adjust Copilot Settings**:
- Limit Copilot's memory usage in `~/.config/Code/User/settings.json`:
json
"copilot.beta记忆力限制": "low"
5. **Check System Logs**:
- Monitor logs for Extension Host errors:
bash
journalctl -u code -f
By implementing these steps, you can stabilize the Extension Host process, reduce crashes, and prevent unexpected refreshes of VS Code extensions.
Deploy with DigitalOcean
Use this fix in production instantly. Claim your $200 developer credit.
Get Started →
digital