UNPKG

1.94 kBTypeScriptView Raw
1import * as React from 'react';
2import { ReactRenderer } from '../widgets';
3import { BreadcrumbsService } from './breadcrumbs-service';
4import { BreadcrumbRenderer } from './breadcrumb-renderer';
5import PerfectScrollbar from 'perfect-scrollbar';
6import URI from '../../common/uri';
7import { Emitter, Event } from '../../common';
8import { BreadcrumbPopupContainer } from './breadcrumb-popup-container';
9import { CorePreferences } from '../core-preferences';
10import { Breadcrumb } from './breadcrumbs-constants';
11import { LabelProvider } from '../label-provider';
12interface Cancelable {
13 canceled: boolean;
14}
15export declare class BreadcrumbsRenderer extends ReactRenderer {
16 protected readonly breadcrumbsService: BreadcrumbsService;
17 protected readonly breadcrumbRenderer: BreadcrumbRenderer;
18 protected readonly corePreferences: CorePreferences;
19 protected readonly labelProvider: LabelProvider;
20 protected readonly onDidChangeActiveStateEmitter: Emitter<boolean>;
21 get onDidChangeActiveState(): Event<boolean>;
22 protected uri: URI | undefined;
23 protected breadcrumbs: Breadcrumb[];
24 protected popup: BreadcrumbPopupContainer | undefined;
25 protected scrollbar: PerfectScrollbar | undefined;
26 get active(): boolean;
27 protected get breadCrumbsContainer(): Element | undefined;
28 protected refreshCancellationMarker: Cancelable;
29 protected init(): void;
30 dispose(): void;
31 refresh(uri?: URI): Promise<void>;
32 protected update(): void;
33 protected createScrollbar(): void;
34 protected scrollToEnd(): void;
35 protected doRender(): React.ReactNode;
36 protected renderBreadcrumbs(): React.ReactNode;
37 protected togglePopup: (breadcrumb: Breadcrumb, event: React.MouseEvent) => void;
38}
39export declare const BreadcrumbsRendererFactory: unique symbol;
40export interface BreadcrumbsRendererFactory {
41 (): BreadcrumbsRenderer;
42}
43export {};
44//# sourceMappingURL=breadcrumbs-renderer.d.ts.map
\No newline at end of file