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

more consistent openEditors() behaviour

上级 77ed9056
...@@ -241,7 +241,7 @@ export class Workbench implements IPartService { ...@@ -241,7 +241,7 @@ export class Workbench implements IPartService {
return { return {
input: inputWithOptions.input, input: inputWithOptions.input,
options: inputWithOptions.options, 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 { ...@@ -137,10 +137,11 @@ export class FileTracker implements IWorkbenchContribution {
} }
// Otherwise open all // Otherwise open all
const activeEditor = this.editorService.getActiveEditor();
return this.editorService.openEditors(resources.map((r, index) => { return this.editorService.openEditors(resources.map((r, index) => {
return { return {
input: r, 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.
先完成此消息的编辑!
想要评论请 注册