1 | import { CancellationToken, Disposable } from '../../common';
|
2 | import { QuickPicks } from './quick-input-service';
|
3 | export declare const QuickAccessContribution: unique symbol;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface QuickAccessContribution {
|
9 | registerQuickAccessProvider(): void;
|
10 | }
|
11 | export interface QuickAccessProvider {
|
12 | getPicks(filter: string, token: CancellationToken): QuickPicks | Promise<QuickPicks>;
|
13 | reset?(): void;
|
14 | }
|
15 | export interface QuickAccessProviderHelp {
|
16 | prefix?: string;
|
17 | description: string;
|
18 | needsEditor: boolean;
|
19 | }
|
20 | export interface QuickAccessProviderDescriptor {
|
21 | |
22 |
|
23 |
|
24 | readonly getInstance: () => QuickAccessProvider;
|
25 | |
26 |
|
27 |
|
28 | readonly prefix: string;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | readonly placeholder?: string;
|
35 | |
36 |
|
37 |
|
38 | readonly helpEntries: QuickAccessProviderHelp[];
|
39 | |
40 |
|
41 |
|
42 | readonly contextKey?: string;
|
43 | }
|
44 | export declare const QuickAccessRegistry: unique symbol;
|
45 |
|
46 |
|
47 |
|
48 | export interface QuickAccessRegistry {
|
49 | registerQuickAccessProvider(provider: QuickAccessProviderDescriptor): Disposable;
|
50 | getQuickAccessProviders(): QuickAccessProviderDescriptor[];
|
51 | getQuickAccessProvider(prefix: string): QuickAccessProviderDescriptor | undefined;
|
52 | clear(): void;
|
53 | }
|
54 |
|
\ | No newline at end of file |