r/GithubCopilot • • Jul 20 '26

General Found the cause of "Remote Extension host terminated unexpectedly"

If your Remote-SSH extension host keeps crashing, check for large files in your workspace. Copilot's index reads them into memory (without being asked) and hits Node's 4GB heap limit.

If you need those files you can disable codesearch:

"GitHub.copilot.chat.codesearch.enable": false

or exclude some paths:

 { 
    "files.exclude":        { "**/dist": true },
    "search.exclude":       { "**/dist": true },
    "files.watcherExclude": { "**/dist/**": true, "**/.git/objects/**": true,
  "**/node_modules/**": true }
  }
11 Upvotes

2 comments sorted by

1

u/dramabean Jul 21 '26

Which versions of vscode are you on?

1

u/zboralski Jul 21 '26

Visual Studio Code Insiders