@vscode/codicons 0.0.46-36 → 0.0.46-38
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/.github/skills/build-new-icons/SKILL.md +38 -0
- package/dist/codicon.css +6 -1
- package/dist/codicon.csv +5 -0
- package/dist/codicon.html +149 -1
- package/dist/codicon.svg +1 -1
- package/dist/codicon.ttf +0 -0
- package/dist/codiconsLibrary.ts +5 -0
- package/dist/metadata.json +68 -0
- package/package.json +1 -1
- package/src/icons/book-compact.svg +1 -0
- package/src/icons/copilot-dot-compact.svg +1 -0
- package/src/icons/copilot-dot.svg +1 -0
- package/src/icons/mic-off-compact.svg +1 -0
- package/src/icons/mic-off.svg +1 -0
- package/src/template/mapping.json +15 -0
- package/src/template/metadata.json +68 -0
- package/.github/prompts/build-new-icons.prompt.md +0 -32
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: build-new-icons
|
|
3
|
+
description: Use after adding SVG icons to vscode-codicons. Builds the codicon font, verifies generated mappings, adds searchable metadata, and checks icon metadata consistency.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Build New Icons
|
|
7
|
+
|
|
8
|
+
Use this workflow after new SVG icons are added to `src/icons/`.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Compare `src/icons/*.svg` with the entries in `src/template/metadata.json`.
|
|
13
|
+
2. Identify and list every icon that does not yet have metadata. If the user supplied icon names, verify them against this comparison rather than assuming the list is complete.
|
|
14
|
+
3. Read `src/template/mapping.json` and allocate the next unused decimal codepoint to each new icon. Add each icon as the primary name under its codepoint and keep the codepoints in ascending order.
|
|
15
|
+
4. Add an entry to `src/template/metadata.json` for every new icon:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
"<icon-name>": {
|
|
19
|
+
"tags": ["<keyword1>", "<keyword2>"],
|
|
20
|
+
"category": "<category>",
|
|
21
|
+
"description": "<Short description of the icon>"
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- Add four to eight search tags that describe the icon's appearance and likely uses.
|
|
26
|
+
- Use the best-fitting category already present in the file, such as `action`, `navigation`, `debug`, `file`, `user`, `git`, `layout`, `editor`, `symbol`, `status`, `media`, `device`, or `misc`.
|
|
27
|
+
- Write a concise, one-line description.
|
|
28
|
+
- Keep entries sorted alphabetically by icon name.
|
|
29
|
+
|
|
30
|
+
5. Run `npm run build` from the `vscode-codicons` repository root and wait for it to finish.
|
|
31
|
+
6. If the build fails, diagnose and fix the failure before continuing.
|
|
32
|
+
7. Verify that every new icon remains a primary name under its assigned codepoint in `src/template/mapping.json`.
|
|
33
|
+
8. Run `node scripts/check-metadata.js`.
|
|
34
|
+
9. Confirm that the metadata check reports no missing or orphaned entries.
|
|
35
|
+
10. Summarize:
|
|
36
|
+
- The new icon names.
|
|
37
|
+
- Their codepoints from `src/template/mapping.json`.
|
|
38
|
+
- Their entries from `src/template/metadata.json`.
|
package/dist/codicon.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@font-face {
|
|
7
7
|
font-family: "codicon";
|
|
8
8
|
font-display: block;
|
|
9
|
-
src: url("./codicon.ttf?
|
|
9
|
+
src: url("./codicon.ttf?62a8973d3c54603c81a840c166d230fc") format("truetype");
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.codicon[class*='codicon-'] {
|
|
@@ -810,3 +810,8 @@
|
|
|
810
810
|
.codicon-xai:before { content: "\ecec" }
|
|
811
811
|
.codicon-arrow-circle-up-sparkle:before { content: "\eced" }
|
|
812
812
|
.codicon-close-small:before { content: "\ecee" }
|
|
813
|
+
.codicon-book-compact:before { content: "\ecef" }
|
|
814
|
+
.codicon-mic-off:before { content: "\ecf0" }
|
|
815
|
+
.codicon-mic-off-compact:before { content: "\ecf1" }
|
|
816
|
+
.codicon-copilot-dot:before { content: "\ecf2" }
|
|
817
|
+
.codicon-copilot-dot-compact:before { content: "\ecf3" }
|
package/dist/codicon.csv
CHANGED
|
@@ -258,6 +258,8 @@ mirror,,EA69
|
|
|
258
258
|
milestone,,EB20
|
|
259
259
|
microsoft,,ECD3
|
|
260
260
|
mic,,EC12
|
|
261
|
+
mic-off,,ECF0
|
|
262
|
+
mic-off-compact,,ECF1
|
|
261
263
|
mic-filled,,EC1C
|
|
262
264
|
mic-download,,ECCD
|
|
263
265
|
mic-download-compact,,ECCE
|
|
@@ -514,6 +516,8 @@ copilot-not-connected,,EC3E
|
|
|
514
516
|
copilot-large,,EC3A
|
|
515
517
|
copilot-in-progress,,EC4C
|
|
516
518
|
copilot-error,,EC4D
|
|
519
|
+
copilot-dot,,ECF2
|
|
520
|
+
copilot-dot-compact,,ECF3
|
|
517
521
|
copilot-compact,,EC8A
|
|
518
522
|
copilot-blocked,,EC3D
|
|
519
523
|
compass,,EBD5
|
|
@@ -598,6 +602,7 @@ bracket-error,,EBE6
|
|
|
598
602
|
bracket-dot,,EBE5
|
|
599
603
|
bookmark,,EAA5
|
|
600
604
|
book,,EAA4
|
|
605
|
+
book-compact,,ECEF
|
|
601
606
|
bold,,EAA3
|
|
602
607
|
blank,,EC03
|
|
603
608
|
bell,,EAA2
|