Align chat context providers with updated ChatContextItem icon typing#8844
Merged
Conversation
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
rzhao271
July 14, 2026 22:42
View session
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
rzhao271
approved these changes
Jul 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the extension’s LM chat context providers and bundled proposed VS Code typings to align with the latest vscode.ChatContextItem icon contract (moving from icon to iconPath) to fix TypeScript compilation failures.
Changes:
- Updated LM context item construction to use
iconPathinstead oficonfor PR/issue/workspace chat context items. - Updated proposed
ChatContextItemtyping and documentation to reflecticonPath?: IconPath. - Extended
ChatSessionProviderOptionModelMetadatawith apromofield (not mentioned in the PR description).
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/lm/pullRequestContextProvider.ts | Uses iconPath for workspace and PR chat context items. |
| src/lm/issueContextProvider.ts | Uses iconPath for issue chat context items. |
| src/@types/vscode.proposed.chatSessionsProvider.d.ts | Adds promo metadata under chat session provider option model metadata. |
| src/@types/vscode.proposed.chatContextProvider.d.ts | Updates ChatContextItem to iconPath?: IconPath and adjusts related docs/comments. |
rzhao271
enabled auto-merge (squash)
July 14, 2026 23:02
DonJayamanne
approved these changes
Jul 15, 2026
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recent VS Code proposed API updates changed chat context item icon typing, causing pipeline TypeScript compilation failures in LM context providers. This PR updates the affected provider payloads to match current
ChatContextItemshape.Type contract alignment
iconwithiconPathin chat context items built by:IssueContextProviderWorkspaceContextProviderPullRequestContextProviderScope of change