Skip to content

GitHub Copilot selectChatModels is returning undefined #284337

@sean-mcmanus

Description

@sean-mcmanus
  • Copilot Chat Extension Version:
  • VS Code Version:Version: 1.107.1 (user setup)
    Commit: 994fd12
    Date: 2025-12-17T14:15:14.850Z
    Electron: 39.2.3
    ElectronBuildId: 12895514
    Chromium: 142.0.7444.175
    Node.js: 22.21.1
    V8: 14.2.231.21-electron.0
    OS: Windows_NT x64 10.0.26100
  • Feature (e.g. agent/edit/ask mode): C/C++ extension
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): GPT-4 family
  • Logs:

Steps to Reproduce:

  1. Our C/C++ extension calls selectChatModel to use GitHub Copilot features but it's failing by returning undefined at https://github.com/microsoft/vscode-cpptools/blob/main/Extension/src/LanguageServer/Providers/CopilotHoverProvider.ts#L48
Image

The repro is to hover over some code in a C++ file with the C/C++ extension enabled and/or debug our extension.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions