提交 dd8b83e0 编写于 作者: P Phawin Khongkhasawan

Add zenMode.hideActivityBar option 🍣

上级 7ecdd35f
......@@ -298,6 +298,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 activitybar bar at the left of the workbench.")
},
'zenMode.restore': {
'type': 'boolean',
'default': false,
......
......@@ -106,6 +106,7 @@ interface WorkbenchParams {
interface IZenModeSettings {
fullScreen: boolean;
hideTabs: boolean;
hideActivityBar: boolean;
hideStatusBar: boolean;
restore: boolean;
}
......@@ -1109,7 +1110,10 @@ export class Workbench implements IPartService {
this.setPanelHidden(true, true).done(undefined, errors.onUnexpectedError);
this.setSideBarHidden(true, true).done(undefined, errors.onUnexpectedError);
this.setActivityBarHidden(true, true);
this.setActivityBarHidden(false, false);
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.
先完成此消息的编辑!
想要评论请 注册