mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
Fix notebook views (#14249)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
import { localize } from 'vs/nls';
|
||||
import { IWorkbenchContribution } from 'vs/workbench/common/contributions';
|
||||
import { IAction } from 'vs/base/common/actions';
|
||||
import { append, $, addClass, toggleClass, Dimension, IFocusTracker, getTotalHeight } from 'vs/base/browser/dom';
|
||||
import { $, toggleClass, Dimension, IFocusTracker, getTotalHeight, prepend } from 'vs/base/browser/dom';
|
||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions';
|
||||
@@ -104,7 +104,6 @@ export class NotebookExplorerViewlet extends Viewlet {
|
||||
export class NotebookExplorerViewPaneContainer extends ViewPaneContainer {
|
||||
private root: HTMLElement;
|
||||
private static readonly MAX_TEXT_RESULTS = 10000;
|
||||
private notebookSourcesBox: HTMLElement;
|
||||
private searchWidgetsContainerElement!: HTMLElement;
|
||||
searchWidget!: NotebookSearchWidget;
|
||||
private inputBoxFocused: IContextKey<boolean>;
|
||||
@@ -135,15 +134,12 @@ export class NotebookExplorerViewPaneContainer extends ViewPaneContainer {
|
||||
}
|
||||
|
||||
create(parent: HTMLElement): void {
|
||||
addClass(parent, 'notebookExplorer-viewlet');
|
||||
this.root = parent;
|
||||
super.create(parent);
|
||||
parent.classList.add('notebookExplorer-viewlet');
|
||||
|
||||
this.searchWidgetsContainerElement = append(this.root, $('.header'));
|
||||
this.searchWidgetsContainerElement = prepend(parent, $('.header'));
|
||||
this.createSearchWidget(this.searchWidgetsContainerElement);
|
||||
|
||||
this.notebookSourcesBox = append(this.root, $('.notebookSources'));
|
||||
|
||||
return super.create(this.notebookSourcesBox);
|
||||
}
|
||||
|
||||
private createSearchWidget(container: HTMLElement): void {
|
||||
|
||||
Reference in New Issue
Block a user