Skip to content
Merged

0.148.0 #8779

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
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 0.148.0

### Changes

- Contribute YAML schema validation for GitHub issue template files under `.github/ISSUE_TEMPLATE/`.

### Fixes

- Comments panel discards `<img>` alt attribute, renders "Image: image". https://github.com/microsoft/vscode-pull-request-github/issues/8760
- Merge button shows a separator even when there are no extra options. https://github.com/microsoft/vscode-pull-request-github/issues/8759
- URI handler rejects PR URLs with underscores in the owner name. https://github.com/microsoft/vscode-pull-request-github/issues/8758
- PR description is reset if the branch push fails. https://github.com/microsoft/vscode-pull-request-github/issues/8678

**_Thank You_**

* [@Malix-Labs](https://github.com/Malix-Labs): Contribute YAML schema validation for GitHub issue templates [PR #8761](https://github.com/microsoft/vscode-pull-request-github/pull/8761)

## 0.146.0

### Changes
Expand Down
4 changes: 2 additions & 2 deletions 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 @@ -41,7 +41,7 @@
"treeItemMarkdownLabel",
"treeViewMarkdownMessage"
],
"version": "0.146.0",
"version": "0.148.0",
"publisher": "GitHub",
"engines": {
"node": ">=20",
Expand Down
51 changes: 51 additions & 0 deletions src/@types/vscode.proposed.chatParticipantPrivate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,4 +468,55 @@ declare module 'vscode' {
*/
readonly fullReferenceName?: string;
}

// #region Quota Sync

/**
* A snapshot of quota usage for a single category (chat, completions, premium chat).
*/
export interface ChatQuotaSnapshot {
readonly percentRemaining: number;
readonly unlimited: boolean;
readonly hasQuota?: boolean;
readonly resetAt?: number;
readonly usageBasedBilling?: boolean;
readonly entitlement?: number;
readonly quotaRemaining?: number;
}

/**
* A snapshot of rate limit usage for a category (session or weekly).
*/
export interface ChatRateLimitSnapshot {
readonly percentRemaining: number;
readonly unlimited: boolean;
readonly resetDate?: string;
}

/**
* Quota snapshot data covering all categories.
* Accepted by {@link chat.updateQuotas} for extension-to-core sync.
*/
export interface ChatQuotaSnapshots {
readonly resetDate?: string;
readonly resetDateHasTime?: boolean;
readonly usageBasedBilling?: boolean;
readonly canUpgradePlan?: boolean;
readonly chat?: ChatQuotaSnapshot;
readonly completions?: ChatQuotaSnapshot;
readonly premiumChat?: ChatQuotaSnapshot;
readonly additionalUsageEnabled?: boolean;
readonly additionalUsageCount?: number;
readonly sessionRateLimit?: ChatRateLimitSnapshot;
readonly weeklyRateLimit?: ChatRateLimitSnapshot;
}

export namespace chat {
/**
* Push quota snapshot data from the extension to the core workbench.
*/
export function updateQuotas(quotas: ChatQuotaSnapshots): void;
}

// #endregion
}