@sigma-file-manager/api 1.7.1 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +20 -3
- package/manifest.schema.json +46 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -128,6 +128,12 @@ export interface ExtensionKeybinding {
|
|
|
128
128
|
when?: ExtensionKeybindingWhen;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
export interface ExtensionIconThemeContribution {
|
|
132
|
+
id: string;
|
|
133
|
+
label: string;
|
|
134
|
+
path: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
131
137
|
export interface ExtensionContributions {
|
|
132
138
|
commands?: ExtensionCommand[];
|
|
133
139
|
contextMenu?: ExtensionContextMenuItem[];
|
|
@@ -136,6 +142,7 @@ export interface ExtensionContributions {
|
|
|
136
142
|
themes?: ExtensionThemeContribution[];
|
|
137
143
|
configuration?: ExtensionConfiguration;
|
|
138
144
|
keybindings?: ExtensionKeybinding[];
|
|
145
|
+
iconThemes?: ExtensionIconThemeContribution[];
|
|
139
146
|
}
|
|
140
147
|
|
|
141
148
|
export interface ExtensionEngines {
|
|
@@ -192,15 +199,25 @@ export interface ExtensionManifestBase {
|
|
|
192
199
|
engines: ExtensionEngines;
|
|
193
200
|
}
|
|
194
201
|
|
|
195
|
-
|
|
196
|
-
themes: ExtensionThemeContribution[];
|
|
202
|
+
type DeclarativeOnlyExtensionContributionGuards = {
|
|
197
203
|
commands?: never;
|
|
198
204
|
contextMenu?: never;
|
|
199
205
|
sidebar?: never;
|
|
200
206
|
toolbar?: never;
|
|
201
207
|
configuration?: never;
|
|
202
208
|
keybindings?: never;
|
|
203
|
-
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export type ThemeOnlyExtensionContributions = DeclarativeOnlyExtensionContributionGuards & (
|
|
212
|
+
| {
|
|
213
|
+
themes: ExtensionThemeContribution[];
|
|
214
|
+
iconThemes?: ExtensionIconThemeContribution[];
|
|
215
|
+
}
|
|
216
|
+
| {
|
|
217
|
+
themes?: ExtensionThemeContribution[];
|
|
218
|
+
iconThemes: ExtensionIconThemeContribution[];
|
|
219
|
+
}
|
|
220
|
+
);
|
|
204
221
|
|
|
205
222
|
export interface ApiExtensionManifest extends ExtensionManifestBase {
|
|
206
223
|
extensionType: 'api';
|
package/manifest.schema.json
CHANGED
|
@@ -61,14 +61,27 @@
|
|
|
61
61
|
],
|
|
62
62
|
"properties": {
|
|
63
63
|
"contributes": {
|
|
64
|
-
"
|
|
65
|
-
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{
|
|
66
|
+
"required": [
|
|
67
|
+
"themes"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"required": [
|
|
72
|
+
"iconThemes"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
66
75
|
],
|
|
67
76
|
"additionalProperties": false,
|
|
68
77
|
"properties": {
|
|
69
78
|
"themes": {
|
|
70
79
|
"type": "array",
|
|
71
80
|
"minItems": 1
|
|
81
|
+
},
|
|
82
|
+
"iconThemes": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"minItems": 1
|
|
72
85
|
}
|
|
73
86
|
}
|
|
74
87
|
}
|
|
@@ -562,6 +575,37 @@
|
|
|
562
575
|
}
|
|
563
576
|
}
|
|
564
577
|
}
|
|
578
|
+
},
|
|
579
|
+
"iconThemes": {
|
|
580
|
+
"type": "array",
|
|
581
|
+
"description": "Navigator icon themes contributed by the extension",
|
|
582
|
+
"minItems": 1,
|
|
583
|
+
"items": {
|
|
584
|
+
"type": "object",
|
|
585
|
+
"required": [
|
|
586
|
+
"id",
|
|
587
|
+
"label",
|
|
588
|
+
"path"
|
|
589
|
+
],
|
|
590
|
+
"properties": {
|
|
591
|
+
"id": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"minLength": 1,
|
|
594
|
+
"pattern": "\\S"
|
|
595
|
+
},
|
|
596
|
+
"label": {
|
|
597
|
+
"type": "string",
|
|
598
|
+
"minLength": 1,
|
|
599
|
+
"pattern": "\\S"
|
|
600
|
+
},
|
|
601
|
+
"path": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"description": "Relative path to the icon theme JSON file",
|
|
604
|
+
"minLength": 1,
|
|
605
|
+
"pattern": "^(?!\\s*$)(?!\\s*(?:[A-Za-z]:|[\\\\/]))(?!\\s*\\.\\.(?:[\\\\/]|\\s*$))(?!.*[\\\\/]\\.\\.(?:[\\\\/]|\\s*$))(?=.*[^.\\\\/\\s]).*$"
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
565
609
|
}
|
|
566
610
|
}
|
|
567
611
|
},
|