@codingame/monaco-vscode-rollup-vsix-plugin 20.2.0 → 20.3.0
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/package.json +2 -2
- package/rollup-vsix-plugin.js +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-rollup-vsix-plugin",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.3.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@rollup/pluginutils": "^5.2.0",
|
|
22
22
|
"css-url-parser": "^1.1.4",
|
|
23
|
-
"memfs": "^4.
|
|
23
|
+
"memfs": "^4.37.0",
|
|
24
24
|
"mime-types": "^3.0.1",
|
|
25
25
|
"thenby": "^1.3.4",
|
|
26
26
|
"yauzl": "^3.0.0"
|
package/rollup-vsix-plugin.js
CHANGED
|
@@ -8340,8 +8340,18 @@ function extractJsonValidationResources(jsonValidation) {
|
|
|
8340
8340
|
function extractViewsContainerResources(viewContainers) {
|
|
8341
8341
|
return Object.values(viewContainers).flatMap((containers) => containers.map((container) => container.icon));
|
|
8342
8342
|
}
|
|
8343
|
+
function extractIconResources(icons) {
|
|
8344
|
+
return Object.values(icons).flatMap((icon) => {
|
|
8345
|
+
if (typeof icon.default === 'object') {
|
|
8346
|
+
return [icon.default.fontPath];
|
|
8347
|
+
}
|
|
8348
|
+
return [];
|
|
8349
|
+
});
|
|
8350
|
+
}
|
|
8343
8351
|
async function extractResourcesFromExtensionManifestContribute(contribute, fs, cwd) {
|
|
8344
8352
|
const resources = [];
|
|
8353
|
+
if (contribute.icons != null)
|
|
8354
|
+
resources.push(...extractIconResources(contribute.icons));
|
|
8345
8355
|
if (contribute.commands != null)
|
|
8346
8356
|
resources.push(...extractCommandResources(contribute.commands));
|
|
8347
8357
|
if (contribute.grammars != null)
|