提交 c4b89c1b 编写于 作者: B Benjamin Pasero

💄

上级 f85db576
......@@ -334,20 +334,17 @@ export class EditorGroup extends Disposable {
// More than one editor
if (this.mru.length > 1) {
let newActive: EditorInput;
if (this.closeTabsInMRUOrder) {
newActive = this.mru[1]; // active editor is always first in MRU, so pick second editor after as new active
}
else {
} else {
if (index === this.editors.length - 1) {
newActive = this.editors[index - 1]; // last editor is closed, pick previous as new active
}
else {
} else {
newActive = this.editors[index + 1]; // pick next editor as new active
}
}
this.setActive(newActive);
}
......
......@@ -518,7 +518,7 @@ configurationRegistry.registerConfiguration({
},
'workbench.editor.closeTabsInMRUOrder': {
'type': 'boolean',
'description': nls.localize('closeTabsInMRUOrder', "Controls whether tabs are closed in most recently used order."),
'description': nls.localize('closeTabsInMRUOrder', "Controls whether tabs are closed in most recently used order or from left to right."),
'default': true
},
'workbench.editor.showIcons': {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册