1 | import { MarkdownString } from '../../common/markdown-rendering/markdown-string';
|
2 | import { AccessibilityInformation } from '../../common/accessibility';
|
3 | export interface StatusBarEntry {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | text: string;
|
21 | alignment: StatusBarAlignment;
|
22 | name?: string;
|
23 | color?: string;
|
24 | backgroundColor?: string;
|
25 | className?: string;
|
26 | tooltip?: string | MarkdownString | HTMLElement;
|
27 | command?: string;
|
28 | arguments?: unknown[];
|
29 | priority?: number;
|
30 | accessibilityInformation?: AccessibilityInformation;
|
31 | affinity?: StatusBarAffinity;
|
32 | onclick?: (e: MouseEvent) => void;
|
33 | }
|
34 | export declare enum StatusBarAlignment {
|
35 | LEFT = 0,
|
36 | RIGHT = 1
|
37 | }
|
38 | export declare const STATUSBAR_WIDGET_FACTORY_ID = "statusBar";
|
39 | export declare const StatusBar: unique symbol;
|
40 | export interface StatusBar {
|
41 | setBackgroundColor(color?: string): Promise<void>;
|
42 | setColor(color?: string): Promise<void>;
|
43 | setElement(id: string, entry: StatusBarEntry): Promise<void>;
|
44 | removeElement(id: string): Promise<void>;
|
45 | }
|
46 | export interface StatusBarAffinity {
|
47 | |
48 |
|
49 |
|
50 | id: string;
|
51 | |
52 |
|
53 |
|
54 | alignment: StatusBarAlignment;
|
55 | |
56 |
|
57 |
|
58 | compact?: boolean;
|
59 | }
|
60 | export interface StatusBarViewModelEntry {
|
61 | id: string;
|
62 | leftChildren: StatusBarViewModelEntry[];
|
63 | head: StatusBarEntry;
|
64 | rightChildren: StatusBarViewModelEntry[];
|
65 | }
|
66 | export interface StatusBarViewEntry {
|
67 | id: string;
|
68 | entry: StatusBarEntry;
|
69 | compact?: boolean;
|
70 |
|
71 | alignment?: StatusBarAlignment;
|
72 | }
|
73 |
|
\ | No newline at end of file |