提交 2cac9dd2 编写于 作者: B Benjamin Pasero

more consistent openEditors() behaviour

上级 77ed9056
......@@ -241,7 +241,7 @@ export class Workbench implements IPartService {
return {
input: inputWithOptions.input,
options: inputWithOptions.options,
position: Math.min(index, Position.RIGHT) // put any resource > RIGHT to right position
position: Position.LEFT
};
});
......
......@@ -137,10 +137,11 @@ export class FileTracker implements IWorkbenchContribution {
}
// Otherwise open all
const activeEditor = this.editorService.getActiveEditor();
return this.editorService.openEditors(resources.map((r, index) => {
return {
input: r,
position: Math.min(index, Position.RIGHT) // put any resource > RIGHT to right position
position: activeEditor ? activeEditor.position : Position.LEFT
};
}));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册