diff --git a/packages/core/src/browser/shell/tab-bars.ts b/packages/core/src/browser/shell/tab-bars.ts index 58404dd03308c..4a13ab9204ff4 100644 --- a/packages/core/src/browser/shell/tab-bars.ts +++ b/packages/core/src/browser/shell/tab-bars.ts @@ -142,7 +142,11 @@ export class TabBarRenderer extends TabBar.Renderer { { key, className, id, title: title.caption, style, dataset, oncontextmenu: this.handleContextMenuEvent, - ondblclick: this.handleDblClickEvent + ondblclick: this.handleDblClickEvent, + onauxclick: (e: MouseEvent) => { + // If user closes the tab using mouse wheel, nothing should be pasted to an active editor + e.preventDefault(); + } }, h.div( { className: 'theia-tab-icon-label' },