提交 d53bb74c 编写于 作者: I isidor

fix cmd+w not working

上级 b939d908
......@@ -307,6 +307,14 @@ function registerEditorCommands() {
const groups = distinct(contexts.map(context => context.group));
const editorsToClose = new Map<Position, IEditorInput[]>();
if (groups.length === 0) {
const activeEditor = editorService.getActiveEditor();
if (activeEditor) {
return editorService.closeEditor(activeEditor.position, activeEditor.input);
}
}
groups.forEach(group => {
const position = editorGroupService.getStacksModel().positionOfGroup(group);
editorsToClose.set(position, contexts.map(c => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册