Skip to content

Commit 0445715

Browse files
authored
1 parent 7ff04ba commit 0445715

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface IConfiguration extends IWindowsConfiguration {
2727
editor?: { accessibilitySupport?: 'on' | 'off' | 'auto' };
2828
security?: { workspace?: { trust?: { enabled?: boolean } } };
2929
window: IWindowSettings & { experimental?: { windowControlsOverlay?: { enabled?: boolean }; useSandbox?: boolean } };
30-
workbench?: { experimental?: { settingsProfiles?: { enabled?: boolean } } };
30+
workbench?: { experimental?: { settingsProfiles?: { enabled?: boolean } }; enableExperiments?: boolean };
3131
}
3232

3333
export class SettingsChangeRelauncher extends Disposable implements IWorkbenchContribution {
@@ -42,6 +42,7 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
4242
private accessibilitySupport: 'on' | 'off' | 'auto' | undefined;
4343
private workspaceTrustEnabled: boolean | undefined;
4444
private settingsProfilesEnabled: boolean | undefined;
45+
private experimentsEnabled: boolean | undefined;
4546

4647
constructor(
4748
@IHostService private readonly hostService: IHostService,
@@ -123,6 +124,12 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
123124
changed = true;
124125
}
125126

127+
// Experiments
128+
if (typeof config.workbench?.enableExperiments === 'boolean' && config.workbench.enableExperiments !== this.experimentsEnabled) {
129+
this.experimentsEnabled = config.workbench.enableExperiments;
130+
changed = true;
131+
}
132+
126133
// Notify only when changed and we are the focused window (avoids notification spam across windows)
127134
if (notify && changed) {
128135
this.doConfirm(

0 commit comments

Comments
 (0)