Skip to content

Commit 3b9b571

Browse files
authored
debt - update tab disposables to include gesture (#280092)
1 parent c15e31f commit 3b9b571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ export class MultiEditorTabsControl extends EditorTabsControl {
827827
});
828828

829829
// Gesture Support
830-
this._register(Gesture.addTarget(tabContainer));
830+
const gestureDisposable = Gesture.addTarget(tabContainer);
831831

832832
// Tab Border Top
833833
const tabBorderTopContainer = $('.tab-border-top-container');
@@ -867,7 +867,7 @@ export class MultiEditorTabsControl extends EditorTabsControl {
867867
// Eventing
868868
const eventsDisposable = this.registerTabListeners(tabContainer, tabIndex, tabsContainer, tabsScrollbar);
869869

870-
this.tabDisposables.push(combinedDisposable(eventsDisposable, tabActionBarDisposable, tabActionRunner, editorLabel));
870+
this.tabDisposables.push(combinedDisposable(gestureDisposable, eventsDisposable, tabActionBarDisposable, editorLabel));
871871

872872
return tabContainer;
873873
}

0 commit comments

Comments
 (0)