From cb2181cff0751ffda52ca5789dffc42ea6a2264b Mon Sep 17 00:00:00 2001 From: isidor Date: Wed, 21 Feb 2018 13:26:57 +0100 Subject: [PATCH] zenMode.centeredLayout -> zenMode.centerLayout --- src/vs/workbench/electron-browser/main.contribution.ts | 6 +++--- src/vs/workbench/electron-browser/workbench.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/workbench/electron-browser/main.contribution.ts b/src/vs/workbench/electron-browser/main.contribution.ts index a07486cfcdd..136a7292250 100644 --- a/src/vs/workbench/electron-browser/main.contribution.ts +++ b/src/vs/workbench/electron-browser/main.contribution.ts @@ -408,10 +408,10 @@ configurationRegistry.registerConfiguration({ 'default': true, 'description': nls.localize('zenMode.fullScreen', "Controls if turning on Zen Mode also puts the workbench into full screen mode.") }, - 'zenMode.centeredLayout': { + 'zenMode.centerLayout': { 'type': 'boolean', 'default': true, - 'description': nls.localize('zenMode.centeredLayout', "Controls if turning on Zen Mode also centers the layout.") + 'description': nls.localize('zenMode.centerLayout', "Controls if turning on Zen Mode also centers the layout.") }, 'zenMode.hideTabs': { 'type': 'boolean', @@ -434,4 +434,4 @@ configurationRegistry.registerConfiguration({ 'description': nls.localize('zenMode.restore', "Controls if a window should restore to zen mode if it was exited in zen mode.") } } -}); \ No newline at end of file +}); diff --git a/src/vs/workbench/electron-browser/workbench.ts b/src/vs/workbench/electron-browser/workbench.ts index 27bb536c426..873e612d355 100644 --- a/src/vs/workbench/electron-browser/workbench.ts +++ b/src/vs/workbench/electron-browser/workbench.ts @@ -117,7 +117,7 @@ interface WorkbenchParams { interface IZenModeSettings { fullScreen: boolean; - centeredLayout: boolean; + centerLayout: boolean; hideTabs: boolean; hideActivityBar: boolean; hideStatusBar: boolean; @@ -1324,7 +1324,7 @@ export class Workbench implements IPartService { const config = this.configurationService.getValue('zenMode'); toggleFullScreen = !browser.isFullscreen() && config.fullScreen; this.zenMode.transitionedToFullScreen = toggleFullScreen; - toggleCenteredEditorLayout = !this.isEditorLayoutCentered() && config.centeredLayout; + toggleCenteredEditorLayout = !this.isEditorLayoutCentered() && config.centerLayout; this.zenMode.transitionedToCenteredEditorLayout = toggleCenteredEditorLayout; this.zenMode.wasSideBarVisible = this.isVisible(Parts.SIDEBAR_PART); this.zenMode.wasPanelVisible = this.isVisible(Parts.PANEL_PART); -- GitLab