提交 8ae90c01 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #24499 from lifez/option-keep-activity-bar-in-zen-mode

Add zenMode.hideActivityBar option
......@@ -311,6 +311,11 @@ configurationRegistry.registerConfiguration({
'default': true,
'description': nls.localize('zenMode.hideStatusBar', "Controls if turning on Zen Mode also hides the status bar at the bottom of the workbench.")
},
'zenMode.hideActivityBar': {
'type': 'boolean',
'default': true,
'description': nls.localize('zenMode.hideActivityBar', "Controls if turning on Zen Mode also hides the activity bar bar at the left of the workbench.")
},
'zenMode.restore': {
'type': 'boolean',
'default': false,
......
......@@ -105,6 +105,7 @@ interface WorkbenchParams {
interface IZenModeSettings {
fullScreen: boolean;
hideTabs: boolean;
hideActivityBar: boolean;
hideStatusBar: boolean;
restore: boolean;
}
......@@ -1097,7 +1098,9 @@ export class Workbench implements IPartService {
this.setPanelHidden(true, true).done(undefined, errors.onUnexpectedError);
this.setSideBarHidden(true, true).done(undefined, errors.onUnexpectedError);
if (config.hideActivityBar) {
this.setActivityBarHidden(true, true);
}
if (config.hideStatusBar) {
this.setStatusBarHidden(true, true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册