Skip to content

Commit 6826ba1

Browse files
committed
Shorten setting name
1 parent 43e20f3 commit 6826ba1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/vs/platform/window/common/window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function useWindowControlsOverlay(configurationService: IConfigurationSer
172172
return false; // only supported when title bar is custom
173173
}
174174

175-
const configuredUseWindowControlsOverlay = configurationService.getValue<boolean | undefined>('window.windowControlsOverlay.enabled');
175+
const configuredUseWindowControlsOverlay = configurationService.getValue<boolean | undefined>('window.enableWindowControlsOverlay');
176176
if (typeof configuredUseWindowControlsOverlay === 'boolean') {
177177
return configuredUseWindowControlsOverlay;
178178
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface IConfiguration extends IWindowsConfiguration {
2626
debug?: { console?: { wordWrap?: boolean } };
2727
editor?: { accessibilitySupport?: 'on' | 'off' | 'auto' };
2828
security?: { workspace?: { trust?: { enabled?: boolean } } };
29-
window: IWindowSettings & { windowControlsOverlay?: { enabled?: boolean }; experimental?: { useSandbox?: boolean } };
29+
window: IWindowSettings & { enableWindowControlsOverlay?: boolean; experimental?: { useSandbox?: boolean } };
3030
workbench?: { experimental?: { settingsProfiles?: { enabled?: boolean } }; enableExperiments?: boolean };
3131
extensions?: { experimental?: { useUtilityProcess?: boolean } };
3232
_extensionsGallery?: { enablePPE?: boolean };
@@ -73,7 +73,7 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
7373
processChanged((config.window.titleBarStyle === 'native' || config.window.titleBarStyle === 'custom') && this.titleBarStyle.handleChange(config.window?.titleBarStyle));
7474

7575
// Windows: Window Controls Overlay
76-
processChanged(isWindows && this.windowControlsOverlayEnabled.handleChange(config.window?.windowControlsOverlay?.enabled));
76+
processChanged(isWindows && this.windowControlsOverlayEnabled.handleChange(config.window?.enableWindowControlsOverlay));
7777

7878
// Windows: Sandbox
7979
processChanged(this.windowSandboxEnabled.handleChange(config.window?.experimental?.useSandbox));

src/vs/workbench/electron-sandbox/desktop.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ import product from 'vs/platform/product/common/product';
205205
'scope': ConfigurationScope.APPLICATION,
206206
'description': localize('titleBarStyle', "Adjust the appearance of the window title bar. On Linux and Windows, this setting also affects the application and context menu appearances. Changes require a full restart to apply.")
207207
},
208-
'window.windowControlsOverlay.enabled': {
208+
'window.enableWindowControlsOverlay': {
209209
'type': 'boolean',
210210
'default': true,
211211
'scope': ConfigurationScope.APPLICATION,

0 commit comments

Comments
 (0)