From a0dc68fbd55a92d3071b4649f933b3de297776c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 21:45:04 +0000 Subject: [PATCH 1/2] Plan: fix chat context iconPath compilation errors Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> --- src/@types/vscode.proposed.chatContextProvider.d.ts | 12 ++++++------ src/@types/vscode.proposed.chatSessionsProvider.d.ts | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/@types/vscode.proposed.chatContextProvider.d.ts b/src/@types/vscode.proposed.chatContextProvider.d.ts index 00f8a62081..709bb3deca 100644 --- a/src/@types/vscode.proposed.chatContextProvider.d.ts +++ b/src/@types/vscode.proposed.chatContextProvider.d.ts @@ -26,7 +26,7 @@ declare module 'vscode' { export function registerChatWorkspaceContextProvider(id: string, provider: ChatWorkspaceContextProvider): Disposable; /** - * Register a chat explicit context provider. Explicit context items are shown as options when the user explicitly attaches context use the "Attache Context" action in the chat input box. + * Register a chat explicit context provider. Explicit context items are shown as options when the user explicitly attaches context use the "Add Context" action in the chat input box. * * Explicit context providers should also be statically contributed in package.json using the `chatContext` contribution point. * @@ -65,11 +65,11 @@ declare module 'vscode' { export interface ChatContextItem { /** * Icon for the context item. - * - If `icon` is not defined, no icon is shown. - * - If `icon` is defined and is a file or folder icon, the icon is derived from {@link resourceUri} if `resourceUri` is defined. - * - Otherwise, `icon` is used. + * - If `iconPath` is not defined, no icon is shown. + * - If `iconPath` is a file or folder {@link ThemeIcon theme icon}, the icon is derived from {@link resourceUri} if `resourceUri` is defined. + * - Otherwise, `iconPath` is used. */ - icon?: ThemeIcon; + iconPath?: IconPath; /** * Human readable label for the context item. * If not set, the label is derived from {@link resourceUri}. @@ -98,7 +98,7 @@ declare module 'vscode' { */ command?: Command; } - + //@api should we rename to ChatGlobalContextProvider? export interface ChatWorkspaceContextProvider { /** diff --git a/src/@types/vscode.proposed.chatSessionsProvider.d.ts b/src/@types/vscode.proposed.chatSessionsProvider.d.ts index 1a34efa788..1003937f26 100644 --- a/src/@types/vscode.proposed.chatSessionsProvider.d.ts +++ b/src/@types/vscode.proposed.chatSessionsProvider.d.ts @@ -714,6 +714,12 @@ declare module 'vscode' { readonly longContextCacheCost?: number; readonly longContextCacheWriteCost?: number; readonly priceCategory?: string; + readonly promo?: { + readonly id: string; + readonly discountPercent: number; + readonly endsAt: string; + readonly message: string; + }; readonly maxInputTokens?: number; readonly maxOutputTokens?: number; readonly capabilities?: { From 2e90adf9f3b49395989b5207e7def6c34b1c2564 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 21:46:27 +0000 Subject: [PATCH 2/2] Fix ChatContextItem iconPath typing usage Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> --- src/lm/issueContextProvider.ts | 2 +- src/lm/pullRequestContextProvider.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lm/issueContextProvider.ts b/src/lm/issueContextProvider.ts index e33fa4a741..78cda0ecb1 100644 --- a/src/lm/issueContextProvider.ts +++ b/src/lm/issueContextProvider.ts @@ -79,7 +79,7 @@ export class IssueContextProvider implements vscode.ChatAttachContextProvider