Skip to content

Commit ee8cc4b

Browse files
authored
match orgs from chat extension (microsoft#265751)
1 parent d1d3e55 commit ee8cc4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/contrib/chat/common/chatEntitlementService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ export class ChatEntitlementContext extends Disposable {
11671167
this.organisationsContextKey.set(state.organisations);
11681168
}
11691169

1170-
this.isInternalContextKey.set(Boolean(state.organisations?.some(org => org === 'github' || org === 'microsoft')));
1170+
this.isInternalContextKey.set(Boolean(state.organisations?.some(org => org === 'github' || org === 'microsoft' || org === 'ms-copilot' || org === 'MicrosoftCopilot')));
11711171
this.skuContextKey.set(state.sku);
11721172

11731173
this.hiddenContext.set(!!state.hidden);

src/vs/workbench/services/assignment/common/assignmentFilters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class CopilotAssignmentFilterProvider extends Disposable implements IExpe
128128
private updateCopilotEntitlementInfo() {
129129
const newSku = this._chatEntitlementService.sku;
130130
const newIsGitHubInternal = this._chatEntitlementService.organisations?.includes('github');
131-
const newIsMicrosoftInternal = this._chatEntitlementService.organisations?.includes('microsoft');
131+
const newIsMicrosoftInternal = this._chatEntitlementService.organisations?.includes('microsoft') || this._chatEntitlementService.organisations?.includes('ms-copilot') || this._chatEntitlementService.organisations?.includes('MicrosoftCopilot');
132132
const newInternalOrg = newIsGitHubInternal ? 'github' : newIsMicrosoftInternal ? 'microsoft' : undefined;
133133

134134
if (this.copilotSku === newSku && this.copilotInternalOrg === newInternalOrg) {

0 commit comments

Comments
 (0)