Skip to content

Commit cb2181c

Browse files
committed
zenMode.centeredLayout -> zenMode.centerLayout
1 parent 9cf5c6e commit cb2181c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/vs/workbench/electron-browser/main.contribution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,10 @@ configurationRegistry.registerConfiguration({
408408
'default': true,
409409
'description': nls.localize('zenMode.fullScreen', "Controls if turning on Zen Mode also puts the workbench into full screen mode.")
410410
},
411-
'zenMode.centeredLayout': {
411+
'zenMode.centerLayout': {
412412
'type': 'boolean',
413413
'default': true,
414-
'description': nls.localize('zenMode.centeredLayout', "Controls if turning on Zen Mode also centers the layout.")
414+
'description': nls.localize('zenMode.centerLayout', "Controls if turning on Zen Mode also centers the layout.")
415415
},
416416
'zenMode.hideTabs': {
417417
'type': 'boolean',
@@ -434,4 +434,4 @@ configurationRegistry.registerConfiguration({
434434
'description': nls.localize('zenMode.restore', "Controls if a window should restore to zen mode if it was exited in zen mode.")
435435
}
436436
}
437-
});
437+
});

src/vs/workbench/electron-browser/workbench.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ interface WorkbenchParams {
117117

118118
interface IZenModeSettings {
119119
fullScreen: boolean;
120-
centeredLayout: boolean;
120+
centerLayout: boolean;
121121
hideTabs: boolean;
122122
hideActivityBar: boolean;
123123
hideStatusBar: boolean;
@@ -1324,7 +1324,7 @@ export class Workbench implements IPartService {
13241324
const config = this.configurationService.getValue<IZenModeSettings>('zenMode');
13251325
toggleFullScreen = !browser.isFullscreen() && config.fullScreen;
13261326
this.zenMode.transitionedToFullScreen = toggleFullScreen;
1327-
toggleCenteredEditorLayout = !this.isEditorLayoutCentered() && config.centeredLayout;
1327+
toggleCenteredEditorLayout = !this.isEditorLayoutCentered() && config.centerLayout;
13281328
this.zenMode.transitionedToCenteredEditorLayout = toggleCenteredEditorLayout;
13291329
this.zenMode.wasSideBarVisible = this.isVisible(Parts.SIDEBAR_PART);
13301330
this.zenMode.wasPanelVisible = this.isVisible(Parts.PANEL_PART);

0 commit comments

Comments
 (0)