Skip to content

Commit 4615ada

Browse files
joshspicerCopilot
andcommitted
Sync chatSessionCustomizationProvider d.ts with VS Code origin/main
Add groupKey, badge, and badgeTooltip fields to ChatSessionCustomizationItem to match upstream changes from #305810 and #305813. The providers don't set these fields explicitly — the VS Code UI auto-enriches instruction items by parsing frontmatter when groupKey is not provided. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ba47817 commit 4615ada

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

src/extension/vscode.proposed.chatSessionCustomizationProvider.d.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ declare module 'vscode' {
4141

4242
/**
4343
* Metadata describing a customization provider and its capabilities.
44-
* This drives UI presentation (label, icon) and filtering (unsupported types).
44+
* This drives UI presentation (label, icon) and filtering (unsupported types,
45+
* workspace sub-paths).
4546
*/
4647
export interface ChatSessionCustomizationProviderMetadata {
4748
/**
@@ -85,6 +86,27 @@ declare module 'vscode' {
8586
* Optional description of this customization.
8687
*/
8788
readonly description?: string;
89+
90+
/**
91+
* Optional group key for display grouping. Items sharing the same
92+
* `groupKey` are placed under a shared collapsible header in the
93+
* management UI.
94+
*
95+
* When omitted, items are grouped automatically by their storage
96+
* source (e.g. Workspace, User) based on the item's URI.
97+
*/
98+
readonly groupKey?: string;
99+
100+
/**
101+
* Optional inline badge text shown next to the item name
102+
* (e.g. a glob pattern like `src/vs/sessions/**`).
103+
*/
104+
readonly badge?: string;
105+
106+
/**
107+
* Optional tooltip text shown when hovering over the badge.
108+
*/
109+
readonly badgeTooltip?: string;
88110
}
89111

90112
/**

0 commit comments

Comments
 (0)