Skip to content

Commit 1ca1119

Browse files
committed
Even safer
1 parent e96e893 commit 1ca1119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class ChatAgentSettingContribution extends Disposable implements IWorkbenchContr
413413

414414
const expDisabledKey = ChatContextKeys.Editing.agentModeDisallowed.bindTo(contextKeyService);
415415
experimentService.getTreatment<boolean>('chatAgentEnabled').then(enabled => {
416-
if (enabled || enabled === undefined) {
416+
if (enabled || typeof enabled !== 'boolean') {
417417
// If enabled, or experiments not available, fall back to registering the setting
418418
this.registerEnablementSetting();
419419
expDisabledKey.set(false);

0 commit comments

Comments
 (0)