User Agents

Web browsers and everyday web tech, explained

Fixing Cursor Waiting for Extension Host Hang

· 6 min read · Extensions

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To fix the "waiting for extension host" hang in Cursor, you must identify and disable the specific extension causing the process to deadlock or consume excessive CPU resources. This error occurs when the separate process that runs your plugins (the extension host) becomes unresponsive, preventing the editor from communicating with language servers, linters, or AI tools. The most immediate fix is to restart the extension host via the Command Palette, but long-term resolution requires auditing your installed plugins and managing your project's workspace settings to prevent the host from crashing under heavy load.

What You'll Need

  • The Cursor editor installed and open.
  • Administrative access to your computer to clear cache folders if necessary.
  • A list of recently installed or updated extensions.
  • Access to the system's Task Manager (Windows) or Activity Monitor (macOS) to monitor process resource usage.

Step-by-Step

  1. Restart the Extension Host: Before attempting a full application restart, try to reset the host process. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) to open the Command Palette. Type "Restart Extension Host" and press Enter. This forces the editor to kill the hung process and spawn a new one without closing your open files.
  2. Check the Extension Host Logs: If the hang recurs, you need to find the culprit. Open the Command Palette again and type "Developer: Show Logs". Select "Extension Host" from the dropdown. Look for "Error", "Timeout", or "Unhandled Promise Rejection" messages. Often, a specific extension name will be mentioned immediately preceding the crash or hang.
  3. Identify Resource-Heavy Plugins: Open the Command Palette and search for "Developer: Open Process Explorer". This window shows exactly how much CPU and memory each extension is using. If you see a specific extension spiking to 100% CPU or consuming gigabytes of RAM, that is the source of your hang.
  4. Disable Suspect Extensions: Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X). Find the extension identified in the previous steps. Click the gear icon and select "Disable". If you are unsure which one is causing the issue, disable all extensions and re-enable them one by one until the hang returns.
  5. Update Cursor and Extensions: Outdated versions of the editor can have compatibility issues with newer extension APIs. Check for updates in the Cursor settings. Then, go to the Extensions view and ensure all plugins are updated to their latest versions.
  6. Adjust Workspace Settings: Large projects with massive node_modules or build folders can overwhelm the extension host's file watcher. Create or edit your .cursorignore or .gitignore file to ensure the editor is not indexing unnecessary directories. In settings, search for "files.watcherExclude" and add patterns like **/node_modules/** or **/dist/**.
  7. Clear the Editor Cache: If the hang persists after disabling extensions, corrupted cache files may be the cause. Close Cursor completely. Navigate to the application data folder (usually %AppData%/Cursor on Windows or ~/Library/Application Support/Cursor on macOS) and delete the "Cache" and "CachedData" folders. Restart the editor.

Common Mistakes

One of the most frequent mistakes is ignoring the Process Explorer and simply restarting the computer. While a reboot clears the immediate hang, it does not address the underlying conflict. If a specific extension is incompatible with your project structure, it will hang again the moment you open that workspace.

Another common error is disabling the AI features of Cursor thinking they are the cause. While the AI relies on the extension host, the hang is usually caused by third-party community extensions (like heavy linters, outdated Docker plugins, or complex theme engines) rather than the core Cursor AI functionality. Always check third-party plugins first.

Users also often forget to check for conflicting extensions. Installing two different extensions that provide the same service (for example, two different Python language servers) can cause them to fight for control over the same file, leading to a deadlock that freezes the extension host.

Tips

To maintain a stable environment, use "Workspace Recommendations". Instead of installing every extension globally, install them specifically for the project you are working on. This ensures that a heavy Java extension isn't running in the background while you are editing a simple Markdown file.

Keep an eye on your RAM usage. The extension host is a Node.js process, and if your system runs out of physical memory, the OS may swap the process to disk, causing it to appear "hung" when it is actually just extremely slow. Closing unused browser tabs or other memory-intensive apps can prevent this.

If you use a monorepo, consider breaking it into smaller workspaces. The extension host has to track every open file and its relationships; in a repository with millions of lines of code, the indexing process can easily trigger a timeout that looks like a hang.

Troubleshooting

If the "Restart Extension Host" command does not work and the editor remains frozen, you must perform a hard kill of the process. Open your system's Task Manager or Activity Monitor and search for processes named "Cursor" or "Code". Look for the one labeled "extensionHost". Force quit that specific process. Cursor will usually detect the crash and prompt you to restart the host automatically.

If the hang happens immediately upon startup, you can launch Cursor in "Disable Extensions" mode. Use the terminal to run cursor --disable-extensions. If the editor runs smoothly in this mode, you have definitive proof that a plugin is the cause. You can then enable them one by one to isolate the problem.

In cases where the hang is tied to a specific file type, check if you have a "Prettier" or "ESLint" configuration that is recursive or contains an infinite loop. A malformed configuration file can cause the language server to enter a loop, consuming all available CPU cycles on the extension host thread.

Frequently Asked Questions

Why does the extension host hang only in certain projects?

This usually happens because of project-specific configurations or the size of the project. Large folders that aren't excluded from indexing can overwhelm the host, or a project-specific .eslintrc or tsconfig.json might be causing a plugin to crash.

Can the Cursor AI cause the extension host to freeze?

Rarely. The core AI features are highly optimized. However, if you are using a third-party AI extension alongside Cursor's native tools, they may conflict. Always prioritize the built-in AI tools over external alternatives.

Does updating my OS affect the extension host?

Yes, OS updates can sometimes change how file system events are handled or how memory is allocated. If a hang starts appearing after an OS update, check for an update to Cursor, as the developers often release patches to maintain compatibility.

Is there a way to increase the memory limit for the extension host?

While there isn't a simple slider in the settings, you can sometimes pass flags to the executable. However, the most effective way to "increase" available memory is to disable unused extensions and optimize your watcherExclude settings.

Will disabling extensions delete my settings?

No. Disabling an extension simply prevents it from loading into the extension host process. All your configurations, keybindings, and preferences for that extension are saved and will be restored once you re-enable it.