Fix notebook views (#14249)

This commit is contained in:
Chris LaFreniere
2021-02-10 16:24:12 -08:00
committed by GitHub
parent 6aafc252e6
commit e4c5af2663

View File

@@ -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 {