From 36bc3fb727854f66c9fd20da8c75769c66b3b392 Mon Sep 17 00:00:00 2001 From: BeniBenj Date: Mon, 2 Oct 2023 12:19:28 +0200 Subject: [PATCH] Fix #194594 --- .../workbench/browser/parts/editor/multiEditorTabsControl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } }));