FIX May 21, 2026 9 min read

GitHub Copilot High CPU Fix: 5 Tested Solutions

TL;DR Copilot’s language server can spike CPU to 100%+ — usually triggered by large files, rapid typing, or extension conflicts. First fix: restart the Copilot language server. If that fails,…

by Bugi 9 min
TL;DR

  • Copilot’s language server can spike CPU to 100%+ — usually triggered by large files, rapid typing, or extension conflicts.
  • First fix: restart the Copilot language server. If that fails, disable inline suggestions and switch to chat-only mode.
  • Persistent issues often trace back to outdated extensions, corrupted caches, or specific file types that cause runaway tokenization.

Overview

GitHub Copilot occasionally pins one or more CPU cores at 100%, making your editor unresponsive. The problem appears across VS Code, JetBrains IDEs, and Visual Studio — though VS Code users report it most frequently. Symptoms include lag on every keystroke, fan noise, and the editor’s process monitor showing github.copilot or copilot-agent consuming disproportionate resources. This article covers five tested fixes, ordered from quickest to most involved.

GitHub Copilot · quick reference
Vendor
GitHub (Microsoft)
Platforms
VS Code, JetBrains, Neovim, Visual Studio
Pricing
Free (limited) · Individual $10/mo · Business $19/mo · Enterprise $39/mo
Last checked
2026-04-10

What Causes High CPU Usage

Copilot runs a background language server process (copilot-agent) that continuously analyzes your code context to generate suggestions. When this process spikes, the cause is almost always one of four things:

  1. Large or generated files. Copilot tries to tokenize the entire open file and surrounding context. Minified JavaScript, large JSON fixtures, or auto-generated code (protobuf outputs, migration dumps) can push the tokenizer into an expensive loop.
  2. Rapid inline suggestion cycling. Typing fast in a file with high suggestion confidence causes Copilot to queue multiple completion requests simultaneously. Each request competes for the same language server thread.
  3. Extension conflicts. Other IntelliSense providers — particularly TypeScript, Pylance, or Tabnine running alongside Copilot — can trigger redundant parsing passes. The language server re-processes context that another extension already invalidated.
  4. Corrupted extension state. After a failed update or crash, the Copilot extension can enter a state where it repeatedly retries failed requests, creating a tight CPU loop.

There is no single error message. The symptom is the process itself. In VS Code, open the Process Explorer:

Help → Open Process Explorer

Look for extensionHost or a copilot-agent child process consuming >50% CPU sustained over 30 seconds. In JetBrains, check Help → Diagnostic Tools → Activity Monitor.

Warning
Don’t confuse a brief CPU spike when opening a large file with a persistent issue. Copilot legitimately needs 2-5 seconds of high CPU on file open. Only investigate if it sustains beyond 30 seconds.

Solution 1: Restart the Copilot Language Server

The fastest fix. This kills the runaway process without losing your session.

VS Code:

Open the Command Palette (Ctrl + Shift + P on Windows/Linux, + Shift + P on macOS) and run:

GitHub Copilot: Restart Server

If the command doesn’t appear, the extension may be in a broken state. Disable and re-enable it instead:

1
Open Extensions sidebar
Ctrl + Shift + X
2
Find GitHub Copilot
Click Disable, wait 5 seconds, click Enable.
3
Check Process Explorer
CPU should drop within 10 seconds of re-enable.

JetBrains:

Go to Settings → Plugins → GitHub Copilot, disable and re-enable, then restart the IDE. JetBrains doesn’t expose a “restart server” action directly.

This works because it forces the language server to drop its current context and reinitialize cleanly. If the spike was caused by a corrupted request queue or a stuck completion, the restart clears it.

Solution 2: Exclude Large and Generated Files

If the problem recurs every time you open specific files, Copilot is choking on file size or content complexity.

Add these to your VS Code settings.json:

{
  "github.copilot.enable": {
    "*": true,
    "json": false,
    "jsonc": false,
    "csv": false,
    "plaintext": false,
    "markdown": false,
    "log": false
  }
}

This disables Copilot for file types where suggestions are rarely useful but tokenization is expensive. Adjust the list to match your project — if you work with large SQL migration files or protobuf outputs, add those types.

For project-level exclusions, create .vscode/settings.json in the repo root with the same config. This avoids affecting your other projects.

Tip
Files over 10,000 lines are the most common trigger. If you can’t disable a file type globally, close the large file before investigating other fixes — it may be the only cause.

The detail docs don’t emphasize: Copilot’s context window doesn’t just include the active file. It pulls from other open tabs. Having five large files open simultaneously multiplies the tokenization cost even if you’re only editing a small one. Close tabs you aren’t actively using.

Solution 3: Disable Inline Suggestions, Use Chat Only

If you want Copilot’s chat and code explanation features but the inline ghost-text completions are the CPU problem, you can disable just the inline component:

{
  "github.copilot.inlineSuggest.enable": false
}

This eliminates the most CPU-intensive part of Copilot — the continuous, keystroke-triggered completion cycle — while keeping Copilot Chat fully functional. Chat requests are on-demand and don’t run a persistent background analysis.

When this is the right call: If you primarily use Copilot for chat-based code generation, /explain, or /fix commands, disabling inline suggestions costs you nothing and dramatically reduces background CPU. This is an underrated configuration that many teams should adopt by default, especially on lower-powered machines or when working in large monorepos.

Solution 4: Clear the Extension Cache and Reinstall

Corrupted state after a failed update is more common than you’d expect, especially if VS Code auto-updates extensions while you’re mid-session.

1
Uninstall Copilot extensions
Remove both “GitHub Copilot” and “GitHub Copilot Chat” from the Extensions sidebar.
2
Clear the extension cache
Delete the Copilot directories manually.
3
Restart VS Code
Fully quit and reopen — don’t just reload the window.
4
Reinstall from the Marketplace
Install the latest version fresh.

Cache locations by OS:

# macOS
rm -rf ~/.vscode/extensions/github.copilot-*
rm -rf ~/.vscode/extensions/github.copilot-chat-*

# Linux
rm -rf ~/.vscode/extensions/github.copilot-*
rm -rf ~/.vscode/extensions/github.copilot-chat-*

# Windows (PowerShell)
Remove-Item -Recurse "$env:USERPROFILE\.vscode\extensions\github.copilot-*"
Remove-Item -Recurse "$env:USERPROFILE\.vscode\extensions\github.copilot-chat-*"
Danger
Don’t delete the entire extensions folder. Only remove the Copilot-specific directories. Deleting everything forces a reinstall of all your extensions.

Solution 5: Check for Extension Conflicts

Multiple AI coding assistants running simultaneously is a common — and often invisible — cause of sustained high CPU. Each one runs its own language server, and they compete for the same file-parsing resources.

Check if any of these are installed alongside Copilot:

  • Tabnine — runs a separate completions engine
  • Codeium — similar background tokenization
  • Amazon Q (formerly CodeWhisperer) — overlapping inline suggestion provider
  • IntelliCode — Microsoft’s older AI completion tool

Disable all competing AI extensions and test. If CPU drops, re-enable them one at a time to identify the conflict.

Beyond AI tools, certain language extensions with aggressive IntelliSense can also amplify the problem. The TypeScript language server in particular is known to interact poorly with Copilot in monorepos with multiple tsconfig.json files. If you’re in a TypeScript project, try setting:

{
  "typescript.tsserver.maxTsServerMemory": 3072
}

This caps the TypeScript server’s memory, which indirectly reduces CPU contention with Copilot’s process.

Takeaway

Run one AI completion provider at a time. If you need both Copilot and another tool, disable inline suggestions on one of them.

Still Not Working?

If none of the above resolves the issue:

  • Check GitHub’s status page at githubstatus.com — server-side issues can cause the local client to retry aggressively, spiking CPU.
  • File an issue on the Copilot feedback repo with your VS Code version, Copilot extension version, and the output from Help → Open Process Explorer.
  • Capture a CPU profile in VS Code (Developer: Toggle Developer Tools → Performance tab → Record for 30 seconds) and attach it to your issue. This gives the Copilot team the stack trace they need.
  • Try VS Code Insiders — some CPU bugs are fixed in pre-release builds before they hit stable.

FAQ

Does GitHub Copilot always use high CPU?
No. Under normal conditions, Copilot’s background process uses 1-5% CPU with brief spikes when generating suggestions. Sustained usage above 50% indicates a problem — usually a large file, extension conflict, or corrupted state.
Will disabling inline suggestions affect Copilot Chat?
No. Inline suggestions and Copilot Chat run independently. Disabling inline completions via github.copilot.inlineSuggest.enable: false stops ghost-text suggestions but leaves chat, /explain, /fix, and all panel features fully functional.
Can Copilot cause high CPU in JetBrains IDEs too?
Yes. The same language server runs across all supported platforms. JetBrains users should check Help → Diagnostic Tools → Activity Monitor for the Copilot plugin process. The fixes are similar: disable/re-enable the plugin, exclude large file types, and check for conflicts with other AI plugins.
How do I check which process is using CPU in VS Code?
Open the Process Explorer via Help → Open Process Explorer. This shows CPU and memory usage broken down by extension host, renderer, and individual extensions. Look for copilot-agent or an extensionHost process with abnormally high CPU.
Does the free tier of Copilot have the same CPU issues?
Yes. The CPU behavior is identical across Free, Individual ($10/mo), Business ($19/mo), and Enterprise ($39/mo) tiers. The local language server runs the same code regardless of plan — tier differences are in rate limits and feature access, not client-side performance.
Should I downgrade the Copilot extension to fix CPU issues?
Only as a last resort. VS Code lets you install a specific version via the Extensions sidebar (click the gear icon → Install Another Version). If a recent update introduced the problem, rolling back one version can confirm it’s a regression. Report it on GitHub so the team can patch it.
Does increasing RAM help with Copilot CPU usage?
Rarely. Copilot CPU spikes are almost always caused by runaway processing loops, not memory pressure. Adding RAM won’t help if the root cause is a large file or extension conflict. The exception: if your system is swapping heavily (under 4 GB free), the OS overhead from swapping can amplify CPU usage from all processes including Copilot.
Does GitHub Copilot always use high CPU?
No. Under normal conditions, Copilot’s background process uses 1-5% CPU with brief spikes when generating suggestions. Sustained usage above 50% indicates a problem — usually a large file, extension conflict, or corrupted state.
Will disabling inline suggestions affect Copilot Chat?
No. Inline suggestions and Copilot Chat run independently. Disabling inline completions stops ghost-text suggestions but leaves chat, /explain, /fix, and all panel features fully functional.
Can Copilot cause high CPU in JetBrains IDEs too?
Yes. The same language server runs across all supported platforms. JetBrains users should check Help → Diagnostic Tools → Activity Monitor for the Copilot plugin process.
How do I check which process is using CPU in VS Code?
Open the Process Explorer via Help → Open Process Explorer. This shows CPU and memory usage broken down by extension host, renderer, and individual extensions.
Does the free tier of Copilot have the same CPU issues?
Yes. The CPU behavior is identical across all tiers. The local language server runs the same code regardless of plan.
Should I downgrade the Copilot extension to fix CPU issues?
Only as a last resort. VS Code lets you install a specific version via the Extensions sidebar. If a recent update introduced the problem, rolling back one version can confirm it’s a regression.
Does increasing RAM help with Copilot CPU usage?
Rarely. Copilot CPU spikes are almost always caused by runaway processing loops, not memory pressure. The exception is if your system is heavily swapping with under 4 GB free.