Skip to content

Remote extension host crashes when Copilot Chat is installed in Dev Container during search for references with C++ extension #14215

@sagischwarz

Description

@sagischwarz

Environment

  • OS and Version: macOS 26.3 (25D125)
  • VS Code Version: 1.109.5
  • C/C++ Extension Version: 1.109.5
  • If using SSH remote, specify OS of remote machine: Linux (via Docker Desktop)

Bug Summary and Steps to Reproduce

Bug Summary:
The remote extension host crashes when Copilot Chat is installed in a dev container during longer search for references with C++ extension

Steps to reproduce:

  • Open a C++ project in a Docker development container using the Dev Containers Extension
  • Install the C/C++ extension and the Copilot Chat extension in the container
  • Use the "Go To References" feature on a variable or a function with a lot of references where the search takes some time
  • The remote extension host crashes after a few seconds with the message "The remote extension host terminated unexpectedly" and restarts reproducibly

Steps to fix:

  • Disable or uninstall Copilot Chat extension
  • "Go To References" works without any problems on all symbols (even if it takes longer)

Configuration and Logs

2026-02-25 09:16:07.266 [warning] No ptyHost heartbeat after 6 seconds
2026-02-25 09:16:22.651 [warning] No ptyHost heartbeat after 6 seconds
2026-02-25 09:17:34.905 [warning] No ptyHost heartbeat after 6 seconds
2026-02-25 09:17:39.243 [info] [127.0.0.1][f6f627b1][ExtensionHostConnection] <37220> Extension Host Process exited with code: null, signal: SIGKILL.
2026-02-25 09:17:39.741 [error] [127.0.0.1][f6f627b1][ExtensionHostConnection] Unknown reconnection token (seen before).
2026-02-25 09:17:40.131 [info] [127.0.0.1][0acec5d3][ExtensionHostConnection] New connection established.
2026-02-25 09:17:40.152 [info] [127.0.0.1][0acec5d3][ExtensionHostConnection] <39390> Launched Extension Host Process.
2026-02-25 09:17:40.787 [info] [127.0.0.1][0acec5d3][ExtensionHostConnection] <39390> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

Other Extensions

The issue is resolved when the Copilot Chat extension is disabled or uninstalled.

Additional context

I had already created an issue for the Copilot Chat plugin, but I've been told that this is a problem of the C++ extension and I have to create a ticket here. See microsoft/vscode#297663

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions