Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"publisher": "GitHub",
"engines": {
"node": ">=20",
"vscode": "^1.129.0"
"vscode": "^1.130.0"
},
"categories": [
"Other",
Expand Down
12 changes: 6 additions & 6 deletions src/@types/vscode.proposed.chatContextProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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}.
Expand Down Expand Up @@ -98,7 +98,7 @@ declare module 'vscode' {
*/
command?: Command;
}

//@api should we rename to ChatGlobalContextProvider?
export interface ChatWorkspaceContextProvider<T extends ChatContextItem = ChatContextItem> {

/**
Expand Down
6 changes: 6 additions & 0 deletions src/@types/vscode.proposed.chatSessionsProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?: {
Expand Down
2 changes: 1 addition & 1 deletion src/lm/issueContextProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class IssueContextProvider implements vscode.ChatAttachContextProvider<Is

private _issueToUnresolvedContext(issue: IssueModel): IssueChatContextItem {
return {
icon: new vscode.ThemeIcon('issues'),
iconPath: new vscode.ThemeIcon('issues'),
label: `#${issue.number} ${issue.title}`,
modelDescription: 'The GitHub issue the user is viewing.',
tooltip: new vscode.MarkdownString(`#${issue.number} ${issue.title}`),
Expand Down
4 changes: 2 additions & 2 deletions src/lm/pullRequestContextProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Default branch: ${defaults.base}`;
Active pull request (may not be the same as open pull request): ${folderManager.activePullRequest.title} ${folderManager.activePullRequest.html_url}`;
}
contexts.push({
icon: new vscode.ThemeIcon('github-alt'),
iconPath: new vscode.ThemeIcon('github-alt'),
label: `${defaults.owner}/${defaults.repo}`,
modelDescription,
value
Expand Down Expand Up @@ -144,7 +144,7 @@ export class PullRequestContextProvider extends Disposable implements vscode.Cha

private _prToUnresolvedContext(pr: PullRequestModel): PRChatContextItem {
return {
icon: new vscode.ThemeIcon('git-pull-request'),
iconPath: new vscode.ThemeIcon('git-pull-request'),
label: `#${pr.number} ${pr.title}`,
modelDescription: 'The GitHub pull request the user is viewing.',
tooltip: new vscode.MarkdownString(`#${pr.number} ${pr.title}`),
Expand Down