From e002ad3b6a06f20c616aa9b26031f920078d0696 Mon Sep 17 00:00:00 2001 From: Anthony Dresser Date: Thu, 18 Oct 2018 13:27:30 -0700 Subject: [PATCH] fix test errors (#2938) --- src/sql/base/browser/ui/panel/panel.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/sql/base/browser/ui/panel/panel.ts b/src/sql/base/browser/ui/panel/panel.ts index aa5b608994..21c3b207a7 100644 --- a/src/sql/base/browser/ui/panel/panel.ts +++ b/src/sql/base/browser/ui/panel/panel.ts @@ -6,7 +6,7 @@ import { IThemable } from 'vs/platform/theme/common/styler'; import { Event, Emitter } from 'vs/base/common/event'; import { Dimension, EventType, $, addDisposableListener } from 'vs/base/browser/dom'; -import { $ as quickBuilder } from 'vs/base/browser/builder'; +import { $ as qb } from 'vs/base/browser/builder'; import { IAction } from 'vs/base/common/actions'; import { IActionOptions, ActionBar } from 'vs/base/browser/ui/actionbar/actionbar'; import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent'; @@ -146,18 +146,18 @@ export class TabbedPanel extends Disposable implements IThemable { } if (this._shownTab) { - this._tabMap.get(this._shownTab).label.classList.remove('active'); - this._tabMap.get(this._shownTab).header.classList.remove('active'); + qb(this._tabMap.get(this._shownTab).label).removeClass('active'); + qb(this._tabMap.get(this._shownTab).header).removeClass('active'); this._tabMap.get(this._shownTab).header.setAttribute('aria-selected', 'false'); } this._shownTab = id; this.tabHistory.push(id); - quickBuilder(this.body).empty(); + qb(this.body).empty(); let tab = this._tabMap.get(this._shownTab); this.body.setAttribute('aria-labelledby', tab.identifier); - tab.label.classList.add('active'); - tab.header.classList.add('active'); + qb(tab.label).addClass('active'); + qb(tab.header).addClass('active'); tab.header.setAttribute('aria-selected', 'true'); tab.view.render(this.body); this._onTabChange.fire(id); @@ -168,11 +168,11 @@ export class TabbedPanel extends Disposable implements IThemable { public removeTab(tab: PanelTabIdentifier) { let actualTab = this._tabMap.get(tab); - quickBuilder(actualTab.header).destroy(); + qb(actualTab.header).destroy(); if (actualTab.view.remove) { actualTab.view.remove(); } - quickBuilder(this._tabMap.get(tab).header).destroy(); + qb(this._tabMap.get(tab).header).destroy(); this._tabMap.delete(tab); if (this._shownTab === tab) { this._shownTab = undefined;