提交 1d757958 编写于 作者: I isidor

open editors: remove openEditors.visible

fixes #6781
上级 5535e959
......@@ -61,7 +61,7 @@ export class ExplorerViewlet extends Viewlet {
return this.configurationService.loadConfiguration().then((config:IFilesConfiguration) => {
// Open editors view should always be visible in no folder workspace.
this.openEditorsVisible = !this.contextService.getWorkspace() || (config.explorer.openEditors.visible && config.explorer.openEditors.maxVisible !== 0);
this.openEditorsVisible = !this.contextService.getWorkspace() || config.explorer.openEditors.maxVisible !== 0;
if (this.openEditorsVisible) {
this.splitView = new SplitView(this.viewletContainer.getHTMLElement());
......
......@@ -240,14 +240,9 @@ configurationRegistry.registerConfiguration({
'properties': {
'explorer.openEditors.maxVisible': {
'type': 'number',
'description': nls.localize('maxVisible', "Maximum number of open editors to show before scrollbars appear. If set to 0 open editors section gets hidden (only applied after VSCode restart)."),
'description': nls.localize('maxVisible', "Maximum number of open editors to show before scrollbars appear. If set to 0 open editors section gets hidden - only applied after VSCode restart."),
'default': 9
},
'explorer.openEditors.visible': {
'type': 'boolean',
'description': nls.localize('openEditorsVisible', "Controls if open editors section is visible or not. Only gets applied after VSCode restart."),
'default': true
},
'explorer.openEditors.dynamicHeight': {
'type': 'boolean',
'description': nls.localize('dynamicHeight', "Controls if the height of the open editors section should adapt dynamically to the number of elements or not."),
......
......@@ -62,7 +62,6 @@ export interface IFilesConfiguration extends IFilesConfiguration {
openEditors: {
maxVisible: number;
dynamicHeight: boolean;
visible: boolean;
};
autoReveal: boolean;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册