UNPKG

1.05 kBTypeScriptView Raw
1import { CancellationToken, Disposable } from '../../common';
2import { ContextKeyService } from '../context-key-service';
3import { QuickAccessContribution, QuickAccessProvider, QuickAccessRegistry } from './quick-access';
4import { QuickPickItem, QuickPicks } from './quick-input-service';
5export interface QuickViewItem {
6 readonly label: string;
7 readonly when?: string;
8 readonly open: () => void;
9}
10export declare class QuickViewService implements QuickAccessContribution, QuickAccessProvider {
11 static PREFIX: string;
12 protected readonly items: (QuickPickItem & {
13 when?: string;
14 })[];
15 private hiddenItemLabels;
16 protected readonly quickAccessRegistry: QuickAccessRegistry;
17 protected readonly contextKexService: ContextKeyService;
18 registerItem(item: QuickViewItem): Disposable;
19 hideItem(label: string): void;
20 showItem(label: string): void;
21 registerQuickAccessProvider(): void;
22 getPicks(filter: string, token: CancellationToken): QuickPicks;
23}
24//# sourceMappingURL=quick-view-service.d.ts.map
\No newline at end of file