-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
34 lines (28 loc) · 775 Bytes
/
Copy pathtypes.ts
File metadata and controls
34 lines (28 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export type ButtonConfig = {
color?: string;
command?: string;
executeAll?: boolean;
group?: ButtonConfig[];
id: string;
name: string;
shortcut?: string;
terminalName?: string;
useVsCodeApi?: boolean;
};
export type RefreshButtonConfig = {
color: string;
enabled: boolean;
icon: string;
};
export type WebviewMessageType = "getConfig" | "setConfig" | "setConfigurationTarget";
export type ExtensionMessageType = "configData" | "configurationTargetChanged";
export type WebviewMessage = {
data?: ButtonConfig[] | ButtonConfig | string;
target?: string;
type: WebviewMessageType;
};
export type ExtensionMessage = {
data?: ButtonConfig[] | string;
type: ExtensionMessageType;
};
export type ConfigurationTarget = "global" | "workspace";