Skip to content

Commit b2d467d

Browse files
committed
fix: dragging tabs between panes is not making the dragged tab active
1 parent cee53fc commit b2d467d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/extensionsIntegrated/TabBar/drag-drop.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -635,13 +635,8 @@ define(function (require, exports, module) {
635635
// Add to the target pane at the calculated position
636636
MainViewManager.addToWorkingSet(targetPaneId, draggedFile, targetInsertIndex);
637637

638-
// If the tab was the active one in the source pane,
639-
// make it active in the target pane too
640-
const activeFile = MainViewManager.getCurrentlyViewedFile(sourcePaneId);
641-
if (activeFile && activeFile.fullPath === draggedPath) {
642-
// Open the file in the target pane and make it active
643-
CommandManager.execute(Commands.FILE_OPEN, { fullPath: draggedPath, paneId: targetPaneId });
644-
}
638+
// we always need to make the dragged tab active in the target pane when moving between panes
639+
CommandManager.execute(Commands.FILE_OPEN, { fullPath: draggedPath, paneId: targetPaneId });
645640
}
646641
}
647642

0 commit comments

Comments
 (0)