Skip to content

Commit e7e0370

Browse files
authored
Merge pull request microsoft#194597 from microsoft/benibenj/candidateFixEditorToPinnedContainer
Fix: Dragging editor tab onto pinned tab bar container not working
2 parents 4268e46 + 36bc3fb commit e7e0370

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ export class MultiEditorTabsControl extends EditorTabsControl {
390390
tabsContainer.classList.remove('scroll');
391391

392392
if (e.target === tabsContainer) {
393-
this.onDrop(e, this.groupView.count, tabsContainer);
393+
const isGroupTransfer = this.groupTransfer.hasData(DraggedEditorGroupIdentifier.prototype);
394+
this.onDrop(e, isGroupTransfer ? this.groupView.count : this.tabsModel.count, tabsContainer);
394395
}
395396
}
396397
}));

0 commit comments

Comments
 (0)