Skip to content

Commit f4af2e7

Browse files
authored
Small fix to chat sessions sentiment check (microsoft#265786)
1 parent ee8cc4b commit f4af2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export class ChatSessionsView extends Disposable implements IWorkbenchContributi
309309
private updateViewContainerRegistration(): void {
310310
const location = this.configurationService.getValue<string>(ChatConfiguration.AgentSessionsViewLocation);
311311
const sentiment = this.chatEntitlementService.sentiment;
312-
if (sentiment.disabled || (location !== 'view' && this.isViewContainerRegistered)) {
312+
if (sentiment.disabled || sentiment.hidden || (location !== 'view' && this.isViewContainerRegistered)) {
313313
this.deregisterViewContainer();
314314
} else if (location === 'view' && !this.isViewContainerRegistered) {
315315
this.registerViewContainer();

0 commit comments

Comments
 (0)