Skip to content

Commit 1841187

Browse files
authored
Hide button to manage overages for enterprise/business users (fix microsoft/vscode-copilot#16963) (#248066)
Hide button to manage overages for enterprise/business users (microsoft/vscode-copilot#16963)
1 parent 59f9878 commit 1841187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ class ChatStatusDashboard extends Disposable {
489489
)
490490
));
491491

492-
if (supportsOverage) {
492+
if (supportsOverage && (this.chatEntitlementService.entitlement === ChatEntitlement.Pro || this.chatEntitlementService.entitlement === ChatEntitlement.ProPlus)) {
493493
const manageOverageButton = disposables.add(new Button(quotaIndicator, { ...defaultButtonStyles, secondary: true }));
494494
manageOverageButton.label = localize('enableAdditionalUsage', "Manage paid premium requests");
495495
disposables.add(manageOverageButton.onDidClick(() => this.runCommandAndClose(() => this.openerService.open(URI.parse(defaultChat.manageOverageUrl)))));

0 commit comments

Comments
 (0)