未验证 提交 f98bf3c5 编写于 作者: J Jean Pierre 提交者: GitHub

Fixes #100303 (#100344)

上级 97346206
......@@ -748,7 +748,8 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
let index = (options && typeof options.index === 'number') ? options.index : targetView.count;
sourceView.editors.forEach(editor => {
const inactive = !sourceView.isActive(editor) || this._activeGroup !== sourceView;
const copyOptions: ICopyEditorOptions = { index, inactive, preserveFocus: inactive };
const sticky = sourceView.isSticky(editor);
const copyOptions: ICopyEditorOptions = { index: !sticky ? index : undefined, inactive, preserveFocus: inactive };
if (options?.mode === MergeGroupMode.COPY_EDITORS) {
sourceView.copyEditor(editor, targetView, copyOptions);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册