mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 00:46:00 +01:00
enable lm management editor for business and enterprise (#288966)
* enable lm management editor for business and enterprise * show for internal
This commit is contained in:
@@ -110,6 +110,8 @@ registerAction2(class extends Action2 {
|
||||
ChatContextKeys.Entitlement.planFree,
|
||||
ChatContextKeys.Entitlement.planPro,
|
||||
ChatContextKeys.Entitlement.planProPlus,
|
||||
ChatContextKeys.Entitlement.planBusiness,
|
||||
ChatContextKeys.Entitlement.planEnterprise,
|
||||
ChatContextKeys.Entitlement.internal
|
||||
)),
|
||||
f1: true,
|
||||
|
||||
@@ -1170,8 +1170,13 @@ export class ChatModelsWidget extends Disposable {
|
||||
|
||||
const configurableVendors = this.languageModelsService.getVendors().filter(vendor => vendor.managementCommand || vendor.configuration);
|
||||
|
||||
const hasPlan = this.chatEntitlementService.entitlement !== ChatEntitlement.Unknown && this.chatEntitlementService.entitlement !== ChatEntitlement.Available;
|
||||
this.addButton.enabled = hasPlan && configurableVendors.length > 0;
|
||||
const entitlement = this.chatEntitlementService.entitlement;
|
||||
const supportsAddingModels = this.chatEntitlementService.isInternal
|
||||
|| (entitlement !== ChatEntitlement.Unknown
|
||||
&& entitlement !== ChatEntitlement.Available
|
||||
&& entitlement !== ChatEntitlement.Business
|
||||
&& entitlement !== ChatEntitlement.Enterprise);
|
||||
this.addButton.enabled = supportsAddingModels && configurableVendors.length > 0;
|
||||
|
||||
this.dropdownActions = configurableVendors.map(vendor => toAction({
|
||||
id: `enable-${vendor.vendor}`,
|
||||
|
||||
Reference in New Issue
Block a user