From a7ceb143a47d4984b8e859b37f21509f648ef7ba Mon Sep 17 00:00:00 2001 From: SteVen Batten Date: Mon, 8 Sep 2025 14:47:32 -0700 Subject: [PATCH] add other orgs --- src/vs/workbench/contrib/chat/common/chatEntitlementService.ts | 2 +- .../workbench/services/assignment/common/assignmentFilters.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/chat/common/chatEntitlementService.ts b/src/vs/workbench/contrib/chat/common/chatEntitlementService.ts index d42dfb190337c..c5543cf8436c1 100644 --- a/src/vs/workbench/contrib/chat/common/chatEntitlementService.ts +++ b/src/vs/workbench/contrib/chat/common/chatEntitlementService.ts @@ -1167,7 +1167,7 @@ export class ChatEntitlementContext extends Disposable { this.enterpriseContextKey.set(state.entitlement === ChatEntitlement.Enterprise); this.organisationsContextKey.set(state.organisations); - this.isInternalContextKey.set(Boolean(state.organisations?.some(org => org === 'github' || org === 'microsoft' || org === 'ms-copilot'))); + this.isInternalContextKey.set(Boolean(state.organisations?.some(org => org === 'github' || org === 'microsoft' || org === 'ms-copilot' || org === 'MicrosoftCopilot'))); this.skuContextKey.set(state.sku); this.hiddenContext.set(!!state.hidden); diff --git a/src/vs/workbench/services/assignment/common/assignmentFilters.ts b/src/vs/workbench/services/assignment/common/assignmentFilters.ts index 3dd9fdc387a03..ed489ddd6605a 100644 --- a/src/vs/workbench/services/assignment/common/assignmentFilters.ts +++ b/src/vs/workbench/services/assignment/common/assignmentFilters.ts @@ -128,7 +128,7 @@ export class CopilotAssignmentFilterProvider extends Disposable implements IExpe private updateCopilotEntitlementInfo() { const newSku = this._chatEntitlementService.sku; const newIsGitHubInternal = this._chatEntitlementService.organisations?.includes('github'); - const newIsMicrosoftInternal = this._chatEntitlementService.organisations?.includes('microsoft'); + const newIsMicrosoftInternal = this._chatEntitlementService.organisations?.includes('microsoft') || this._chatEntitlementService.organisations?.includes('ms-copilot') || this._chatEntitlementService.organisations?.includes('MicrosoftCopilot'); const newInternalOrg = newIsGitHubInternal ? 'github' : newIsMicrosoftInternal ? 'microsoft' : undefined; if (this.copilotSku === newSku && this.copilotInternalOrg === newInternalOrg) {