Skip to content

Extension not activating if remote has ssh config includes #13966

@gnammix

Description

@gnammix

Environment

  • OS and Version: Windows 11
  • VS Code Version: 1.104.1
  • C/C++ Extension Version: 1.27.7
  • If using SSH remote, specify OS of remote machine: Ubuntu 24.04 LTS

Bug Summary and Steps to Reproduce

Bug Summary:
This is quite odd but I'm able to reproduce it 100%.
I'm not sure why this happens or if this issue is in vscode-cpptools or vscode-remote-ssh.
But changing the Include line as written below fixes it, so maybe it is worth checking/easy to fix.

Extension doesn't load.
No actions seems to work (formatting, go to definitions, header/cpp switch, ...).
Trying to format the whole document pops up request to install a cpp formatter.

The extension show "Activating extension..." on the status but nothing else happens.
Even "C/C++: Log Diagnostics" doesn't do anything.

Steps to reproduce:
Add

Include **/config

to remote ssh config.

Removing or changing it to (for example):

Include config.d/*

fix the issue, the extension activate and work correctly.

Expected behavior:
Extension activate correctly.

Configuration and Logs

I cannot generate any log "C/C++: Log Diagnostics" doesn't do anything.

Other Extensions

The whole vscode-remote suite is installed.
cmake-tools

Additional context

No response

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions