Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading