Skip to content

chat: make sendChatRequest extensionIdentifier parameter optional - #298767

Merged
Connor Peet (connor4312) merged 3 commits into
mainfrom
connor4312/290436
Mar 2, 2026
Merged

Connor Peet (connor4312) merged 3 commits into
mainfrom
connor4312/290436

Conversation

@connor4312

Copy link
Copy Markdown
Member

Makes the 'from' parameter optional (ExtensionIdentifier | undefined) in the
sendChatRequest method chain across ILanguageModelsService, RPC protocol, and
implementations. This allows internal VS Code calls to pass undefined instead
of instantiating invalid ExtensionIdentifier('core') identifiers.

  • Updates ILanguageModelsService.sendChatRequest signature
  • Updates ILanguageModelChatProvider.sendChatRequest signature
  • Updates ExtHostLanguageModelsShape protocol
  • Updates ExtHostLanguageModels \ implementation
  • Removes new ExtensionIdentifier('core') from 5 internal callers
  • Passes undefined as requestInitiator when from is absent
  • Bumps vscode.proposed.chatProvider API version to 5
  • Updates test mocks to accept optional from parameter

Refs #290436

(Commit message generated by Copilot)

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants