@vscode/codicons 0.0.45-9 → 0.0.46-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/.fantasticonrc.js +9 -5
- package/.github/workflows/gh-pages.yml +1 -1
- package/.github/workflows/release.yml +19 -1
- package/dist/codicon.css +5 -3
- package/dist/codicon.csv +535 -533
- package/dist/codicon.html +1663 -1621
- package/dist/codicon.svg +1 -1
- package/dist/codicon.ttf +0 -0
- package/dist/codiconsLibrary.ts +2 -0
- package/dist/metadata.json +10 -0
- package/package.json +4 -4
- package/scripts/patch-fantasticon.js +95 -0
- package/scripts/reset.js +5 -8
- package/src/icons/new-session.svg +1 -0
- package/src/icons/terminal-secure.svg +1 -0
- package/src/icons/vscode-insiders.svg +1 -1
- package/src/icons/vscode.svg +1 -1
- package/src/icons/worktree-small.svg +1 -1
- package/src/icons/worktree.svg +1 -1
- package/src/template/mapping.json +6 -0
- package/src/template/metadata.json +10 -0
package/dist/codicon.ttf
CHANGED
|
Binary file
|
package/dist/codiconsLibrary.ts
CHANGED
|
@@ -655,4 +655,6 @@ export const codiconsLibrary = {
|
|
|
655
655
|
openai: register('openai', 0xec81),
|
|
656
656
|
claude: register('claude', 0xec82),
|
|
657
657
|
openInWindow: register('open-in-window', 0xec83),
|
|
658
|
+
newSession: register('new-session', 0xec84),
|
|
659
|
+
terminalSecure: register('terminal-secure', 0xec85),
|
|
658
660
|
} as const;
|
package/dist/metadata.json
CHANGED
|
@@ -589,6 +589,11 @@
|
|
|
589
589
|
"category": "file",
|
|
590
590
|
"description": "New folder"
|
|
591
591
|
},
|
|
592
|
+
"new-session": {
|
|
593
|
+
"tags": ["create", "add", "session", "compose", "edit", "chat", "start"],
|
|
594
|
+
"category": "action",
|
|
595
|
+
"description": "Start a new session"
|
|
596
|
+
},
|
|
592
597
|
"note": {
|
|
593
598
|
"tags": ["document", "memo", "text", "write"],
|
|
594
599
|
"category": "content",
|
|
@@ -784,6 +789,11 @@
|
|
|
784
789
|
"category": "application",
|
|
785
790
|
"description": "Terminal or console"
|
|
786
791
|
},
|
|
792
|
+
"terminal-secure": {
|
|
793
|
+
"tags": ["console", "command", "shell", "cli", "lock", "secure", "protected"],
|
|
794
|
+
"category": "application",
|
|
795
|
+
"description": "Secure terminal"
|
|
796
|
+
},
|
|
787
797
|
"text-size": {
|
|
788
798
|
"tags": ["font", "typography", "scale", "zoom"],
|
|
789
799
|
"category": "text",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/codicons",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46-0",
|
|
4
4
|
"fontVersion": "1.15",
|
|
5
5
|
"description": "The icon font for Visual Studio Code",
|
|
6
6
|
"license": "CC-BY-4.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"embed-metadata": "node ./scripts/embed-metadata.js",
|
|
17
17
|
"embed-svg-data": "node ./scripts/embed-svg-data.js",
|
|
18
18
|
"check-metadata": "node ./scripts/check-metadata.js",
|
|
19
|
-
"fonts": "fantasticon",
|
|
19
|
+
"fonts": "node ./scripts/patch-fantasticon.js && fantasticon",
|
|
20
20
|
"dev": "npm run build && npm run replace-in-vscode",
|
|
21
21
|
"build": "npm run clean && npm run svgo && npm run fonts && npm run export-to-ts && npm run export-to-csv && npm run copy-metadata && npm run embed-metadata && npm run embed-svg-data && npm run sprite",
|
|
22
22
|
"version:bump": "node ./scripts/version-bump.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"ansi-regex": ">=5.0.1",
|
|
40
|
-
"fantasticon": "^1.
|
|
40
|
+
"fantasticon": "^4.1.0",
|
|
41
41
|
"husky": "^9.1.7",
|
|
42
42
|
"opentype.js": "^1.3.4",
|
|
43
43
|
"svg-sprite": "^2.0.4",
|
|
44
|
-
"svgo": "4.0.
|
|
44
|
+
"svgo": "4.0.1"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Temporary Windows compatibility patch for Fantasticon.
|
|
3
|
+
*
|
|
4
|
+
* Context:
|
|
5
|
+
* https://github.com/tancredi/fantasticon/issues/470
|
|
6
|
+
*
|
|
7
|
+
* Fantasticon 4.x builds the SVG discovery pattern internally using `path.join`
|
|
8
|
+
* and then passes that pattern into `glob`. On Windows, `path.join` emits
|
|
9
|
+
* backslashes, so the generated pattern looks like:
|
|
10
|
+
*
|
|
11
|
+
* D:\a\vscode-codicons\vscode-codicons\src\icons\**\*.svg
|
|
12
|
+
*
|
|
13
|
+
* The `glob` package does not interpret those backslashes as path separators in
|
|
14
|
+
* a glob expression. Instead, they are treated as escape characters. The result
|
|
15
|
+
* is that the pattern matches zero files, even though the icons are present on
|
|
16
|
+
* disk and earlier build steps such as `svgo -f ./src/icons/` can see them.
|
|
17
|
+
*
|
|
18
|
+
* That is why the CI failure looks misleading:
|
|
19
|
+
*
|
|
20
|
+
* No SVGs found in D:/a/vscode-codicons/vscode-codicons/src/icons
|
|
21
|
+
*
|
|
22
|
+
* The directory exists. The files exist. The problem is the glob pattern that
|
|
23
|
+
* Fantasticon constructs internally before it searches for the files.
|
|
24
|
+
*
|
|
25
|
+
* We already normalize the paths we pass into `.fantasticonrc.js`, but that is
|
|
26
|
+
* not sufficient because Fantasticon recreates the broken Windows pattern inside
|
|
27
|
+
* its own compiled runtime. The upstream issue thread repeatedly points to the
|
|
28
|
+
* same low-level fix: normalize the generated glob path to forward slashes
|
|
29
|
+
* before `glob` receives it.
|
|
30
|
+
*
|
|
31
|
+
* This script applies exactly that workaround to the installed Fantasticon
|
|
32
|
+
* package on Windows before the `fantasticon` CLI is executed. It patches both
|
|
33
|
+
* the library bundle and the CLI bundle because the published package contains
|
|
34
|
+
* duplicated compiled entrypoints under `dist/`.
|
|
35
|
+
*
|
|
36
|
+
* Scope and intent:
|
|
37
|
+
* - Windows only
|
|
38
|
+
* - No-op on macOS/Linux
|
|
39
|
+
* - Idempotent if the dependency is already patched
|
|
40
|
+
* - Fails loudly if Fantasticon changes shape and the expected line is no longer
|
|
41
|
+
* present, because a silent no-op would hide a broken release path
|
|
42
|
+
*
|
|
43
|
+
* This should be considered a repository-side compatibility shim until the
|
|
44
|
+
* upstream fix from the Fantasticon issue/PR thread lands in a released version
|
|
45
|
+
* that we can consume directly.
|
|
46
|
+
*/
|
|
47
|
+
const fs = require('fs');
|
|
48
|
+
const path = require('path');
|
|
49
|
+
|
|
50
|
+
if (process.platform !== 'win32') {
|
|
51
|
+
process.exit(0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const targetFiles = [
|
|
55
|
+
path.resolve(__dirname, '..', 'node_modules', 'fantasticon', 'dist', 'index.cjs'),
|
|
56
|
+
path.resolve(__dirname, '..', 'node_modules', 'fantasticon', 'dist', 'cli', 'index.cjs')
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
const replacementSuffix = ".replace(/\\\\/g, '/')";
|
|
60
|
+
const targetSnippet = '`**/*.${ASSETS_EXTENSION}`';
|
|
61
|
+
let patchedFileCount = 0;
|
|
62
|
+
let alreadyPatchedCount = 0;
|
|
63
|
+
|
|
64
|
+
for (const targetFile of targetFiles) {
|
|
65
|
+
if (!fs.existsSync(targetFile)) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const originalContent = fs.readFileSync(targetFile, 'utf8');
|
|
70
|
+
const patchedContent = originalContent
|
|
71
|
+
.split('\n')
|
|
72
|
+
.map((line) => {
|
|
73
|
+
if (!line.includes('const globPath = ') || !line.includes(targetSnippet) || line.includes(replacementSuffix)) {
|
|
74
|
+
return line;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return line.replace(';', `${replacementSuffix};`);
|
|
78
|
+
})
|
|
79
|
+
.join('\n');
|
|
80
|
+
|
|
81
|
+
if (patchedContent !== originalContent) {
|
|
82
|
+
fs.writeFileSync(targetFile, patchedContent, 'utf8');
|
|
83
|
+
patchedFileCount += 1;
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (originalContent.includes(replacementSuffix)) {
|
|
88
|
+
alreadyPatchedCount += 1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (patchedFileCount === 0 && alreadyPatchedCount === 0) {
|
|
93
|
+
console.error('fantasticon-fix: expected globPath pattern not found in installed Fantasticon files.');
|
|
94
|
+
process.exit(1);
|
|
95
|
+
}
|
package/scripts/reset.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
const fs = require("fs");
|
|
2
|
-
const rimraf = require("rimraf");
|
|
3
2
|
|
|
4
3
|
const outputDirectory = "dist";
|
|
5
4
|
|
|
6
5
|
// clear dist folder
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
fs.mkdirSync(outputDirectory);
|
|
13
|
-
});
|
|
6
|
+
fs.rmSync(outputDirectory, { recursive: true, force: true });
|
|
7
|
+
console.log(`deleted "${outputDirectory}" folder`);
|
|
8
|
+
|
|
9
|
+
// re-create dist folder
|
|
10
|
+
fs.mkdirSync(outputDirectory, { recursive: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M14.452 1.548C14.087 1.183 13.608 1 13.13 1C12.652 1 12.173 1.183 11.808 1.548L6.979 6.377C6.697 6.659 6.498 7.011 6.401 7.398L6.027 8.896C5.883 9.473 6.329 10.002 6.886 10.002C6.958 10.002 7.031 9.993 7.106 9.975L8.604 9.601C8.99 9.504 9.343 9.305 9.625 9.023L14.454 4.194C15.184 3.464 15.184 2.28 14.454 1.549L14.452 1.548ZM13.745 3.485L8.916 8.314C8.763 8.467 8.57 8.576 8.36 8.629L7.04 8.962L7.371 7.64C7.424 7.43 7.532 7.237 7.686 7.084L12.516 2.255C12.68 2.091 12.899 2 13.131 2C13.363 2 13.582 2.091 13.746 2.255C14.085 2.594 14.085 3.146 13.746 3.486L13.745 3.485ZM13 7.768L14 6.768V11.5C14 12.878 12.879 14 11.5 14H4.5C3.121 14 2 12.878 2 11.5V4.5C2 3.122 3.121 2 4.5 2H9.236L8.236 3H4.5C3.673 3 3 3.673 3 4.5V11.5C3 12.327 3.673 13 4.5 13H11.5C12.327 13 13 12.327 13 11.5V7.768Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M15 3H14.5V2C14.5 0.895 13.605 0 12.5 0C11.395 0 10.5 0.895 10.5 2V3H10C9.448 3 9 3.448 9 4V8C9 8.552 9.448 9 10 9H15C15.552 9 16 8.552 16 8V4C16 3.448 15.552 3 15 3ZM12.5 6.75C12.086 6.75 11.75 6.414 11.75 6C11.75 5.586 12.086 5.25 12.5 5.25C12.914 5.25 13.25 5.586 13.25 6C13.25 6.414 12.914 6.75 12.5 6.75ZM13.5 3H11.5V2C11.5 1.448 11.948 1 12.5 1C13.052 1 13.5 1.448 13.5 2V3ZM14 10H15V12.5C15 13.879 13.879 15 12.5 15H3.5C2.121 15 1 13.879 1 12.5V3.5C1 2.122 2.121 1 3.5 1H9V2H3.5C2.673 2 2 2.673 2 3.5V12.5C2 13.327 2.673 14 3.5 14H12.5C13.327 14 14 13.327 14 12.5V10ZM7 11.5C7 11.224 7.224 11 7.5 11H12.5C12.776 11 13 11.224 13 11.5C13 11.776 12.776 12 12.5 12H7.5C7.224 12 7 11.776 7 11.5ZM3.146 11.147L5.792 8.501L3.146 5.855C2.951 5.66 2.951 5.343 3.146 5.148C3.341 4.953 3.658 4.953 3.853 5.148L6.853 8.148C7.048 8.343 7.048 8.66 6.853 8.855L3.854 11.854C3.756 11.952 3.628 12 3.5 12C3.372 12 3.244 11.951 3.146 11.854C2.951 11.659 2.951 11.342 3.146 11.147Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M8.045 7.37722L5.449 5.40722L10.636 0.676223C10.685 0.631223 10.735 0.617223 10.778 0.617223C10.786 0.617223 10.999 0.627223 10.999 0.837223V5.13222L8.044 7.37622L8.045 7.37722ZM0.217 10.1762C0.072 10.3082 0 10.4882 0 10.6682C0 10.8482 0.073 11.0292 0.218 11.1612L1.099 11.9622C1.226 12.0772 1.386 12.1352 1.547 12.1352C1.688 12.1352 1.83 12.0902 1.95 12.0002L3.887 10.5312L1.858 8.68122L0.218 10.1762H0.217ZM1.95 4.00822C1.83 3.91722 1.689 3.87322 1.547 3.87322C1.386 3.87322 1.225 3.93122 1.099 4.04622L0.218 4.84722C0.073 4.97922 0 5.16022 0 5.34022C0 5.52022 0.072 5.70022 0.217 5.83222L2.202 7.64222L10.634 15.3332C10.684 15.3792 10.735 15.3922 10.779 15.3922C10.888 15.3922 11 15.3142 11 15.1752V10.8762L1.95 4.00822ZM15.434 1.73322L12.14 0.149223C12.002 0.0832227 11.855 0.0532227 11.709 0.0532227H11.704C11.888 0.268223 12.003 0.537223 12.003 0.837223V15.1752C12.004 15.4702 11.894 15.7342 11.716 15.9472H11.734C11.748 15.9472 11.761 15.9472 11.775 15.9472C11.962 15.9472 12.123 15.8682 12.14 15.8602L15.434 14.2762C15.78 14.1102 16 13.7592 16 13.3752V2.63422C16 2.25022 15.78 1.90022 15.434 1.73322Z"/></svg>
|
package/src/icons/vscode.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M15.434 1.72887L12.14 0.144875C12.002 0.078875 11.855 0.046875 11.709 0.046875C11.353 0.046875 11.18 0.211875 11.155 0.228875C11.073 0.270875 11.005 0.337875 11.004 0.338875L4.698 6.08888L1.951 4.00488C1.832 3.91388 1.69 3.86987 1.548 3.86987C1.387 3.86987 1.226 3.92788 1.1 4.04288L0.219 4.84387C0.074 4.97587 0.001 5.15688 0.001 5.33687C0.001 5.51687 0.073 5.69688 0.218 5.82888L2.6 8.00088L0.217 10.1719C0.072 10.3039 0 10.4839 0 10.6639C0 10.8439 0.073 11.0249 0.218 11.1569L1.099 11.9579C1.226 12.0729 1.386 12.1309 1.547 12.1309C1.688 12.1309 1.83 12.0859 1.95 11.9959L4.697 9.91187L11.003 15.6619C11.003 15.6619 11.072 15.7299 11.155 15.7719C11.179 15.7889 11.353 15.9529 11.709 15.9529C11.855 15.9529 12.003 15.9209 12.141 15.8549L15.435 14.2709C15.781 14.1049 16.001 13.7539 16.001 13.3699V2.62888C16.001 2.24487 15.781 1.89488 15.435 1.72787L15.434 1.72887ZM7.217 7.99988L12.002 4.36987V11.6299L7.217 7.99988Z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M8.854
|
|
1
|
+
<svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M8.854 7.14578C8.659 6.95078 8.342 6.95078 8.147 7.14578C7.952 7.34079 7.952 7.65778 8.147 7.85279L8.293 7.99879H5.75C5.337 7.99879 5 7.66279 5 7.24879V3.74879C5 3.33479 5.337 2.99879 5.75 2.99879H8.293L8.147 3.14479C7.952 3.33979 7.952 3.65679 8.147 3.85179C8.245 3.94979 8.373 3.99779 8.501 3.99779C8.629 3.99779 8.757 3.94879 8.855 3.85179L9.855 2.85179C10.05 2.65679 10.05 2.33979 9.855 2.14479L8.855 1.14479C8.66 0.949785 8.343 0.949785 8.148 1.14479C7.953 1.33979 7.953 1.65679 8.148 1.85179L8.294 1.99779H5.751C4.786 1.99779 4.001 2.78279 4.001 3.74779V4.99779H0.5C0.224 4.99779 0 5.22179 0 5.49779C0 5.77379 0.224 5.99779 0.5 5.99779H4V7.24779C4 8.21279 4.785 8.99779 5.75 8.99779H8.293L8.147 9.14379C7.952 9.33879 7.952 9.65579 8.147 9.85079C8.245 9.94878 8.373 9.99679 8.501 9.99679C8.629 9.99679 8.757 9.94779 8.855 9.85079L9.855 8.85078C10.05 8.65578 10.05 8.33879 9.855 8.14378L8.855 7.14378L8.854 7.14578Z"/></svg>
|
package/src/icons/worktree.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M12.854
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M12.854 14.8542L14.854 12.8542C15.049 12.6592 15.049 12.3422 14.854 12.1472L12.854 10.1472C12.659 9.95223 12.342 9.95223 12.147 10.1472C11.952 10.3422 11.952 10.6592 12.147 10.8542L13.293 12.0002H8.5C8.225 12.0002 8 11.7752 8 11.5002V5.50023C8 5.22523 8.225 5.00023 8.5 5.00023H13.293L12.147 6.14623C12.049 6.24423 12.001 6.37223 12.001 6.50023C12.001 6.62823 12.05 6.75623 12.147 6.85423C12.342 7.04923 12.659 7.04923 12.854 6.85423L14.854 4.85423C15.049 4.65923 15.049 4.34223 14.854 4.14723L12.854 2.14723C12.659 1.95223 12.342 1.95223 12.147 2.14723C11.952 2.34223 11.952 2.65923 12.147 2.85423L13.293 4.00023H8.5C7.673 4.00023 7 4.67323 7 5.50023V8.00023H1.5C1.224 8.00023 1 8.22423 1 8.50023C1 8.77623 1.224 9.00023 1.5 9.00023H7V11.5002C7 12.3272 7.673 13.0002 8.5 13.0002H13.293L12.147 14.1462C12.049 14.2442 12.001 14.3722 12.001 14.5002C12.001 14.6282 12.05 14.7562 12.147 14.8542C12.342 15.0492 12.659 15.0492 12.854 14.8542Z"/></svg>
|
|
@@ -589,6 +589,11 @@
|
|
|
589
589
|
"category": "file",
|
|
590
590
|
"description": "New folder"
|
|
591
591
|
},
|
|
592
|
+
"new-session": {
|
|
593
|
+
"tags": ["create", "add", "session", "compose", "edit", "chat", "start"],
|
|
594
|
+
"category": "action",
|
|
595
|
+
"description": "Start a new session"
|
|
596
|
+
},
|
|
592
597
|
"note": {
|
|
593
598
|
"tags": ["document", "memo", "text", "write"],
|
|
594
599
|
"category": "content",
|
|
@@ -784,6 +789,11 @@
|
|
|
784
789
|
"category": "application",
|
|
785
790
|
"description": "Terminal or console"
|
|
786
791
|
},
|
|
792
|
+
"terminal-secure": {
|
|
793
|
+
"tags": ["console", "command", "shell", "cli", "lock", "secure", "protected"],
|
|
794
|
+
"category": "application",
|
|
795
|
+
"description": "Secure terminal"
|
|
796
|
+
},
|
|
787
797
|
"text-size": {
|
|
788
798
|
"tags": ["font", "typography", "scale", "zoom"],
|
|
789
799
|
"category": "text",
|