Skip to content

Commit 827bf56

Browse files
committed
0.158.0
1 parent 49f3c48 commit 827bf56

7 files changed

Lines changed: 35 additions & 12 deletions

‎CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.158.0
4+
5+
### Changes
6+
7+
- Display verified badges for commits in the pull request timeline.
8+
- Adopt the updated chat context API.
9+
10+
### Fixes
11+
12+
- Correctly account for required approving reviews when determining whether a pull request is ready to merge.
13+
314
## 0.156.0
415

516
### Fixes

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"treeItemMarkdownLabel",
4242
"treeViewMarkdownMessage"
4343
],
44-
"version": "0.156.0",
44+
"version": "0.158.0",
4545
"publisher": "GitHub",
4646
"engines": {
4747
"node": ">=20",

‎src/@types/vscode.proposed.chatContextProvider.d.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare module 'vscode' {
2626
export function registerChatWorkspaceContextProvider(id: string, provider: ChatWorkspaceContextProvider): Disposable;
2727

2828
/**
29-
* 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.
29+
* 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.
3030
*
3131
* Explicit context providers should also be statically contributed in package.json using the `chatContext` contribution point.
3232
*
@@ -65,11 +65,11 @@ declare module 'vscode' {
6565
export interface ChatContextItem {
6666
/**
6767
* Icon for the context item.
68-
* - If `icon` is not defined, no icon is shown.
69-
* - If `icon` is defined and is a file or folder icon, the icon is derived from {@link resourceUri} if `resourceUri` is defined.
70-
* - Otherwise, `icon` is used.
68+
* - If `iconPath` is not defined, no icon is shown.
69+
* - If `iconPath` is a file or folder {@link ThemeIcon theme icon}, the icon is derived from {@link resourceUri} if `resourceUri` is defined.
70+
* - Otherwise, `iconPath` is used.
7171
*/
72-
icon?: ThemeIcon;
72+
iconPath?: IconPath;
7373
/**
7474
* Human readable label for the context item.
7575
* If not set, the label is derived from {@link resourceUri}.
@@ -98,7 +98,7 @@ declare module 'vscode' {
9898
*/
9999
command?: Command;
100100
}
101-
101+
//@api should we rename to ChatGlobalContextProvider?
102102
export interface ChatWorkspaceContextProvider<T extends ChatContextItem = ChatContextItem> {
103103

104104
/**

‎src/@types/vscode.proposed.chatSessionsProvider.d.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,12 @@ declare module 'vscode' {
714714
readonly longContextCacheCost?: number;
715715
readonly longContextCacheWriteCost?: number;
716716
readonly priceCategory?: string;
717+
readonly promo?: {
718+
readonly id: string;
719+
readonly discountPercent: number;
720+
readonly endsAt: string;
721+
readonly message: string;
722+
};
717723
readonly maxInputTokens?: number;
718724
readonly maxOutputTokens?: number;
719725
readonly capabilities?: {

‎src/lm/issueContextProvider.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ export class IssueContextProvider implements vscode.ChatAttachContextProvider<Is
7878
}
7979

8080
private _issueToUnresolvedContext(issue: IssueModel): IssueChatContextItem {
81+
// eslint-disable-next-line rulesdir/no-cast-to-any
8182
return {
8283
icon: new vscode.ThemeIcon('issues'),
84+
iconPath: new vscode.ThemeIcon('issues'),
8385
label: `#${issue.number} ${issue.title}`,
8486
modelDescription: 'The GitHub issue the user is viewing.',
8587
tooltip: new vscode.MarkdownString(`#${issue.number} ${issue.title}`),
@@ -88,7 +90,7 @@ export class IssueContextProvider implements vscode.ChatAttachContextProvider<Is
8890
command: 'issue.openDescription',
8991
title: vscode.l10n.t('Open Issue')
9092
}
91-
};
93+
} as any;
9294
}
9395

9496
private async _resolvedIssueValue(issue: IssueModel): Promise<string> {

‎src/lm/pullRequestContextProvider.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,14 @@ Default branch: ${defaults.base}`;
9191
value = `${value}
9292
Active pull request (may not be the same as open pull request): ${folderManager.activePullRequest.title} ${folderManager.activePullRequest.html_url}`;
9393
}
94+
// eslint-disable-next-line rulesdir/no-cast-to-any
9495
contexts.push({
9596
icon: new vscode.ThemeIcon('github-alt'),
97+
iconPath: new vscode.ThemeIcon('github-alt'),
9698
label: `${defaults.owner}/${defaults.repo}`,
9799
modelDescription,
98100
value
99-
});
101+
} as any);
100102
}
101103
return contexts;
102104
}
@@ -143,8 +145,10 @@ export class PullRequestContextProvider extends Disposable implements vscode.Cha
143145
}
144146

145147
private _prToUnresolvedContext(pr: PullRequestModel): PRChatContextItem {
148+
// eslint-disable-next-line rulesdir/no-cast-to-any
146149
return {
147150
icon: new vscode.ThemeIcon('git-pull-request'),
151+
iconPath: new vscode.ThemeIcon('git-pull-request'),
148152
label: `#${pr.number} ${pr.title}`,
149153
modelDescription: 'The GitHub pull request the user is viewing.',
150154
tooltip: new vscode.MarkdownString(`#${pr.number} ${pr.title}`),
@@ -153,7 +157,7 @@ export class PullRequestContextProvider extends Disposable implements vscode.Cha
153157
command: 'pr.openDescription',
154158
title: vscode.l10n.t('Open Pull Request')
155159
}
156-
};
160+
} as any;
157161
}
158162

159163
private async _resolvedPrValue(pr: PullRequestModel): Promise<string> {

0 commit comments

Comments
 (0)