diff --git a/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts b/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts index 26906df911954..b6ee5f64f81a9 100644 --- a/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts +++ b/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts @@ -390,7 +390,8 @@ export class MultiEditorTabsControl extends EditorTabsControl { tabsContainer.classList.remove('scroll'); if (e.target === tabsContainer) { - this.onDrop(e, this.groupView.count, tabsContainer); + const isGroupTransfer = this.groupTransfer.hasData(DraggedEditorGroupIdentifier.prototype); + this.onDrop(e, isGroupTransfer ? this.groupView.count : this.tabsModel.count, tabsContainer); } } }));