@vscode/codicons 0.0.36 → 0.0.39

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.
Files changed (82) hide show
  1. package/.fantasticonrc.js +17 -9
  2. package/.github/workflows/release.yml +2 -2
  3. package/.husky/pre-commit +1 -0
  4. package/.vscode/settings.json +4 -1
  5. package/README.md +7 -5
  6. package/build/pipeline.yml +36 -0
  7. package/dist/codicon.css +33 -1
  8. package/dist/codicon.csv +34 -3
  9. package/dist/codicon.html +256 -0
  10. package/dist/codicon.svg +1 -1
  11. package/dist/codicon.ttf +0 -0
  12. package/dist/codiconsLibrary.ts +33 -1
  13. package/package.json +14 -7
  14. package/scripts/export-to-ts.js +1 -1
  15. package/scripts/svg-sprite.js +60 -4
  16. package/scripts/version-bump.js +166 -0
  17. package/src/icons/archive.svg +1 -1
  18. package/src/icons/attach.svg +1 -0
  19. package/src/icons/chat-sparkle.svg +1 -0
  20. package/src/icons/code-review.svg +1 -0
  21. package/src/icons/copilot-blocked.svg +1 -0
  22. package/src/icons/copilot-error.svg +1 -0
  23. package/src/icons/copilot-in-progress.svg +1 -0
  24. package/src/icons/copilot-large.svg +1 -0
  25. package/src/icons/copilot-not-connected.svg +1 -0
  26. package/src/icons/copilot-snooze.svg +1 -0
  27. package/src/icons/copilot-success.svg +1 -0
  28. package/src/icons/copilot-unavailable.svg +1 -0
  29. package/src/icons/copilot-warning-large.svg +1 -0
  30. package/src/icons/copilot-warning.svg +1 -0
  31. package/src/icons/copilot.svg +1 -1
  32. package/src/icons/diff-multiple.svg +1 -1
  33. package/src/icons/diff-single.svg +1 -1
  34. package/src/icons/edit-session.svg +1 -0
  35. package/src/icons/edit-sparkle.svg +1 -0
  36. package/src/icons/extensions-large.svg +1 -0
  37. package/src/icons/extensions.svg +1 -1
  38. package/src/icons/file-binary.svg +1 -1
  39. package/src/icons/file-code.svg +1 -1
  40. package/src/icons/file-media.svg +1 -1
  41. package/src/icons/file-zip.svg +1 -1
  42. package/src/icons/file.svg +1 -1
  43. package/src/icons/flag.svg +1 -0
  44. package/src/icons/git-pull-request-done.svg +1 -0
  45. package/src/icons/git-pull-request-go-to-changes.svg +1 -1
  46. package/src/icons/git-pull-request-new-changes.svg +1 -1
  47. package/src/icons/go-to-editing-session.svg +1 -0
  48. package/src/icons/go-to-file.svg +1 -1
  49. package/src/icons/go-to-search.svg +1 -1
  50. package/src/icons/keyboard-tab-above.svg +1 -0
  51. package/src/icons/keyboard-tab-below.svg +1 -0
  52. package/src/icons/keyboard-tab.svg +1 -0
  53. package/src/icons/layout-panel-dock.svg +1 -0
  54. package/src/icons/layout-sidebar-left-dock.svg +1 -0
  55. package/src/icons/layout-sidebar-right-dock.svg +1 -0
  56. package/src/icons/lightbulb-empty.svg +1 -0
  57. package/src/icons/lightbulb-sparkle.svg +1 -1
  58. package/src/icons/mcp.svg +1 -0
  59. package/src/icons/mention.svg +1 -1
  60. package/src/icons/mic-filled.svg +1 -1
  61. package/src/icons/mic.svg +1 -1
  62. package/src/icons/new-file.svg +1 -1
  63. package/src/icons/python.svg +1 -0
  64. package/src/icons/repo-clone.svg +1 -1
  65. package/src/icons/repo-pinned.svg +1 -0
  66. package/src/icons/repo.svg +1 -1
  67. package/src/icons/request-changes.svg +1 -1
  68. package/src/icons/screen-full.svg +1 -1
  69. package/src/icons/screen-normal.svg +1 -1
  70. package/src/icons/search-sparkle.svg +1 -0
  71. package/src/icons/send-to-remote-agent.svg +1 -0
  72. package/src/icons/star-empty.svg +1 -1
  73. package/src/icons/star-full.svg +1 -1
  74. package/src/icons/star-half.svg +1 -1
  75. package/src/icons/symbol-method-arrow.svg +1 -0
  76. package/src/icons/sync-ignored.svg +1 -1
  77. package/src/icons/sync.svg +1 -1
  78. package/src/icons/thumbsdown-filled.svg +1 -1
  79. package/src/icons/thumbsdown.svg +1 -1
  80. package/src/icons/thumbsup-filled.svg +1 -1
  81. package/src/icons/thumbsup.svg +1 -1
  82. package/src/template/mapping.json +34 -2
package/.fantasticonrc.js CHANGED
@@ -1,24 +1,32 @@
1
- const package = require('./package.json');
2
- const codepoints = require('./src/template/mapping.json');
1
+ /* eslint-disable */
2
+ var pkg = require('./package.json');
3
+ var path = require('path');
4
+ var codepoints = require('./src/template/mapping.json');
5
+
6
+ // Ensure paths are platform-agnostic for Windows CI
7
+ var inputDir = path.resolve(__dirname, 'src', 'icons');
8
+ var outputDir = path.resolve(__dirname, 'dist');
9
+ var templateHtml = path.resolve(__dirname, 'src', 'template', 'preview.hbs');
10
+ var templateCss = path.resolve(__dirname, 'src', 'template', 'styles.hbs');
3
11
 
4
12
  module.exports = {
5
13
  name: 'codicon',
6
14
  prefix: 'codicon',
7
15
  codepoints: codepoints,
8
- inputDir: './src/icons',
9
- outputDir: './dist',
16
+ inputDir: inputDir,
17
+ outputDir: outputDir,
10
18
  fontTypes: ['ttf'],
11
19
  normalize: true,
12
20
  assetTypes: ['css', 'html'],
13
21
  templates: {
14
- html: './src/template/preview.hbs',
15
- css: './src/template/styles.hbs'
22
+ html: templateHtml,
23
+ css: templateCss
16
24
  },
17
25
  formatOptions: {
18
26
  ttf: {
19
- url: package.url,
20
- description: package.description,
21
- version: package.fontVersion
27
+ url: pkg.url,
28
+ description: pkg.description,
29
+ version: pkg.fontVersion
22
30
  }
23
31
  }
24
32
  };
@@ -45,7 +45,7 @@ jobs:
45
45
  id: create_release
46
46
  uses: actions/create-release@v1
47
47
  env:
48
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48
+ GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
49
49
  with:
50
50
  tag_name: ${{ github.ref }}
51
51
  release_name: ${{ github.ref }}
@@ -57,7 +57,7 @@ jobs:
57
57
  if: startsWith(github.ref, 'refs/tags/')
58
58
  uses: actions/upload-release-asset@v1
59
59
  env:
60
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
+ GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
61
61
  with:
62
62
  upload_url: ${{ steps.create_release.outputs.upload_url }}
63
63
  asset_path: ./dist/codicon.ttf
@@ -0,0 +1 @@
1
+ npm i && npm run svgo
@@ -1,3 +1,6 @@
1
1
  {
2
- "livePreview.defaultPreviewPath": "/dist/codicon.html"
2
+ "livePreview.defaultPreviewPath": "/dist/codicon.html",
3
+ "git.branchProtection": [
4
+ "main"
5
+ ]
3
6
  }
package/README.md CHANGED
@@ -7,7 +7,9 @@
7
7
 
8
8
  ![codicons preview of the icons](https://raw.githubusercontent.com/microsoft/vscode-codicons/main/preview.png)
9
9
 
10
- This tool takes the [Visual Studio Code icons](https://microsoft.github.io/vscode-codicons/dist/codicon.html) and converts them into an icon font using [fantasticon](https://github.com/tancredi/fantasticon).
10
+ This tool takes the [Visual Studio Code icons](https://github.com/microsoft/vscode-codicons/tree/main/src/icons) and converts them into an icon font using [fantasticon](https://github.com/tancredi/fantasticon).
11
+
12
+ Using the [Visual Studio Codicon Lookup](https://microsoft.github.io/vscode-codicons/dist/codicon.html) you can preview and search for icons.
11
13
 
12
14
  ## Install
13
15
  You can use the [npm package](https://www.npmjs.com/package/@vscode/codicons) and install into your project via:
@@ -37,8 +39,6 @@ npm install
37
39
  npm run build
38
40
  ```
39
41
 
40
- Output will be exported to a `dist` folder.
41
-
42
42
  ## Update packages
43
43
 
44
44
  You can run `npm outdated` to see if there are any package updates. To update packages, run:
@@ -51,14 +51,16 @@ npm update
51
51
 
52
52
  Export your icons (svg) to the `src/icons` folder and add an entry into `src/template/mapping.json` with a new codepoint key (this gets converted into a unicode key) and run the the build command. The build command will also remove any subfolders in the `icons` folder to keep the folder structure consistent.
53
53
 
54
- Next, update the [codicons file](https://github.com/microsoft/vscode/blob/main/src/vs/base/common/codicons.ts) on the vscode repository, ensuring that the unicode characters are the same (you can reference the [css file](https://microsoft.github.io/vscode-codicons/dist/codicon.css)).
54
+ Next, update the [codicons file](https://github.com/microsoft/vscode/blob/main/src/vs/base/browser/ui/codicons/codicon/codicon.ttf) on the vscode repository.
55
55
 
56
+ > **Note:** If your icons look broken after converting into fonts (happens often when exporting as SVG from Figma), you might need to sanitize them using a tool
57
+ > like [svg-reorient](https://github.com/bigtimebuddy/svg-reorient).
56
58
 
57
59
  ## Using CSS Classes
58
60
 
59
61
  If you're building a VS Code extension, see this [webview extension sample](https://github.com/microsoft/vscode-extension-samples/tree/main/webview-codicons-sample) on how to integrate.
60
62
 
61
- When needing to reference an icon in the [Visual Studio Code source code](https://github.com/microsoft/vscode) via CSS classes, simply create a dom element/container that contains `codicon` and the [icon name](https://microsoft.github.io/vscode-codicons/dist/codicon.html) like:
63
+ When needing to reference an icon in the [Visual Studio Code source code](https://github.com/microsoft/vscode) via CSS classes, simply create a dom element/container that contains `codicon` and the icon name like:
62
64
 
63
65
  ```html
64
66
  <div class='codicon codicon-add'></div>
@@ -0,0 +1,36 @@
1
+ name: $(Date:yyyyMMdd)$(Rev:.r)
2
+
3
+ trigger:
4
+ branches:
5
+ include:
6
+ - main
7
+ pr: none
8
+
9
+ resources:
10
+ repositories:
11
+ - repository: templates
12
+ type: github
13
+ name: microsoft/vscode-engineering
14
+ ref: main
15
+ endpoint: Monaco
16
+
17
+ parameters:
18
+ - name: publishPackage
19
+ displayName: 🚀 Publish codicons
20
+ type: boolean
21
+ default: false
22
+
23
+ extends:
24
+ template: azure-pipelines/npm-package/pipeline.yml@templates
25
+ parameters:
26
+ npmPackages:
27
+ - name: codicons
28
+
29
+ buildSteps:
30
+ - script: npm ci
31
+ displayName: Install dependencies
32
+
33
+ - script: npm run build
34
+ displayName: Build npm package
35
+
36
+ publishPackage: ${{ parameters.publishPackage }}
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?38dcd33a732ebca5a557e04831e9e235") format("truetype");
9
+ src: url("./codicon.ttf?9548aa74ff94830c1d540ed047a49e18") format("truetype");
10
10
  }
11
11
 
12
12
  .codicon[class*='codicon-'] {
@@ -626,4 +626,36 @@
626
626
  .codicon-go-to-search:before { content: "\ec32" }
627
627
  .codicon-percentage:before { content: "\ec33" }
628
628
  .codicon-sort-percentage:before { content: "\ec33" }
629
+ .codicon-attach:before { content: "\ec34" }
630
+ .codicon-go-to-editing-session:before { content: "\ec35" }
631
+ .codicon-edit-session:before { content: "\ec36" }
632
+ .codicon-code-review:before { content: "\ec37" }
633
+ .codicon-copilot-warning:before { content: "\ec38" }
634
+ .codicon-python:before { content: "\ec39" }
635
+ .codicon-copilot-large:before { content: "\ec3a" }
636
+ .codicon-copilot-warning-large:before { content: "\ec3b" }
637
+ .codicon-keyboard-tab:before { content: "\ec3c" }
638
+ .codicon-copilot-blocked:before { content: "\ec3d" }
639
+ .codicon-copilot-not-connected:before { content: "\ec3e" }
640
+ .codicon-flag:before { content: "\ec3f" }
641
+ .codicon-lightbulb-empty:before { content: "\ec40" }
642
+ .codicon-symbol-method-arrow:before { content: "\ec41" }
643
+ .codicon-copilot-unavailable:before { content: "\ec42" }
644
+ .codicon-repo-pinned:before { content: "\ec43" }
645
+ .codicon-keyboard-tab-above:before { content: "\ec44" }
646
+ .codicon-keyboard-tab-below:before { content: "\ec45" }
647
+ .codicon-git-pull-request-done:before { content: "\ec46" }
648
+ .codicon-mcp:before { content: "\ec47" }
649
+ .codicon-extensions-large:before { content: "\ec48" }
650
+ .codicon-layout-panel-dock:before { content: "\ec49" }
651
+ .codicon-layout-sidebar-left-dock:before { content: "\ec4a" }
652
+ .codicon-layout-sidebar-right-dock:before { content: "\ec4b" }
653
+ .codicon-copilot-in-progress:before { content: "\ec4c" }
654
+ .codicon-copilot-error:before { content: "\ec4d" }
655
+ .codicon-copilot-success:before { content: "\ec4e" }
656
+ .codicon-chat-sparkle:before { content: "\ec4f" }
657
+ .codicon-search-sparkle:before { content: "\ec50" }
658
+ .codicon-edit-sparkle:before { content: "\ec51" }
659
+ .codicon-copilot-snooze:before { content: "\ec52" }
660
+ .codicon-send-to-remote-agent:before { content: "\ec53" }
629
661
  .codicon-git-fetch:before { content: "\f101" }
package/dist/codicon.csv CHANGED
@@ -17,6 +17,7 @@ arrow-small-right,,EA9F
17
17
  arrow-small-up,,EAA0
18
18
  arrow-swap,,EBCB
19
19
  arrow-up,,EAA1
20
+ attach,,EC34
20
21
  azure-devops,,EBE8
21
22
  azure,,EBD8
22
23
  beaker-stop,,EBE1
@@ -39,6 +40,7 @@ calendar,,EAB0
39
40
  call-incoming,,EB92
40
41
  call-outgoing,,EB93
41
42
  case-sensitive,,EAB1
43
+ chat-sparkle,,EC4F
42
44
  check-all,,EBB1
43
45
  check,,EAB2
44
46
  checklist,,EAB3
@@ -67,6 +69,7 @@ cloud-download,,EAC2
67
69
  cloud-upload,,EAC3
68
70
  cloud,,EBAA
69
71
  code-oss,,EC2B
72
+ code-review,,EC37
70
73
  code,,EAC4
71
74
  coffee,,EC15
72
75
  collapse-all,,EAC5
@@ -79,6 +82,16 @@ comment,,EA6B
79
82
  compass-active,,EBD7
80
83
  compass-dot,,EBD6
81
84
  compass,,EBD5
85
+ copilot-blocked,,EC3D
86
+ copilot-error,,EC4D
87
+ copilot-in-progress,,EC4C
88
+ copilot-large,,EC3A
89
+ copilot-not-connected,,EC3E
90
+ copilot-snooze,,EC52
91
+ copilot-success,,EC4E
92
+ copilot-unavailable,,EC42
93
+ copilot-warning-large,,EC3B
94
+ copilot-warning,,EC38
82
95
  copilot,,EC1E
83
96
  copy,,EBCC
84
97
  coverage,,EC2E
@@ -128,9 +141,11 @@ diff-modified,,EADE
128
141
  diff-multiple,,EC23
129
142
  diff-removed,,EADF
130
143
  diff-renamed,,EAE0
131
- diff-single,,EC22
144
+ diff-single,,EB43
132
145
  diff,,EAE1
133
146
  discard,,EAE2
147
+ edit-session,,EC36
148
+ edit-sparkle,,EC51
134
149
  edit,,EA73
135
150
  editor-layout,,EAE3
136
151
  ellipsis,,EA7C
@@ -140,6 +155,7 @@ error,,EA87
140
155
  exclude,,EAE5
141
156
  expand-all,,EB95
142
157
  export,,EBAC
158
+ extensions-large,,EC48
143
159
  extensions,,EAE6
144
160
  eye-closed,,EAE7
145
161
  eye,,EA70
@@ -156,6 +172,7 @@ file,,EA7B
156
172
  files,,EAF0
157
173
  filter-filled,,EBCE
158
174
  filter,,EAF1
175
+ flag,,EC3F
159
176
  flame,,EAF2
160
177
  fold-down,,EAF3
161
178
  fold-up,,EAF4
@@ -168,12 +185,14 @@ game,,EC17
168
185
  gear,,EAF8
169
186
  gift,,EAF9
170
187
  gist-secret,,EAFA
188
+ gist,,EAFB
171
189
  git-commit,,EAFC
172
190
  git-compare,,EAFD
173
191
  git-fetch,,F101
174
192
  git-merge,,EAFE
175
193
  git-pull-request-closed,,EBDA
176
194
  git-pull-request-create,,EBBC
195
+ git-pull-request-done,,EC46
177
196
  git-pull-request-draft,,EBDB
178
197
  git-pull-request-go-to-changes,,EC0B
179
198
  git-pull-request-new-changes,,EC0C
@@ -187,6 +206,7 @@ github-inverted,,EBA1
187
206
  github-project,,EC2F
188
207
  github,,EA84
189
208
  globe,,EB01
209
+ go-to-editing-session,,EC35
190
210
  go-to-file,,EA94
191
211
  go-to-search,,EC32
192
212
  grabber,,EB02
@@ -215,6 +235,9 @@ jersey,,EB0E
215
235
  json,,EB0F
216
236
  kebab-vertical,,EB10
217
237
  key,,EB11
238
+ keyboard-tab-above,,EC44
239
+ keyboard-tab-below,,EC45
240
+ keyboard-tab,,EC3C
218
241
  law,,EB12
219
242
  layers-active,,EBD4
220
243
  layers-dot,,EBD3
@@ -224,19 +247,23 @@ layout-activitybar-right,,EBED
224
247
  layout-centered,,EBF7
225
248
  layout-menubar,,EBF6
226
249
  layout-panel-center,,EBEF
250
+ layout-panel-dock,,EC49
227
251
  layout-panel-justify,,EBF0
228
252
  layout-panel-left,,EBEE
229
253
  layout-panel-off,,EC01
230
254
  layout-panel-right,,EBF1
231
255
  layout-panel,,EBF2
256
+ layout-sidebar-left-dock,,EC4A
232
257
  layout-sidebar-left-off,,EC02
233
258
  layout-sidebar-left,,EBF3
259
+ layout-sidebar-right-dock,,EC4B
234
260
  layout-sidebar-right-off,,EC00
235
261
  layout-sidebar-right,,EBF4
236
262
  layout-statusbar,,EBF5
237
263
  layout,,EBEB
238
264
  library,,EB9C
239
265
  lightbulb-autofix,,EB13
266
+ lightbulb-empty,,EC40
240
267
  lightbulb-sparkle,,EC1F
241
268
  lightbulb,,EA61
242
269
  link-external,,EB14
@@ -260,6 +287,7 @@ map-vertical-filled,,EC31
260
287
  map-vertical,,EC30
261
288
  map,,EC05
262
289
  markdown,,EB1D
290
+ mcp,,EC47
263
291
  megaphone,,EB1E
264
292
  mention,,EB1F
265
293
  menu,,EB94
@@ -304,6 +332,7 @@ preview,,EB2F
304
332
  primitive-square,,EA72
305
333
  project,,EB30
306
334
  pulse,,EB31
335
+ python,,EC39
307
336
  question,,EB32
308
337
  quote,,EB33
309
338
  radio-tower,,EB34
@@ -325,11 +354,11 @@ repo-clone,,EB3E
325
354
  repo-fetch,,EC1D
326
355
  repo-force-push,,EB3F
327
356
  repo-forked,,EA63
357
+ repo-pinned,,EC43
328
358
  repo-pull,,EB40
329
359
  repo-push,,EB41
330
360
  repo,,EA62
331
361
  report,,EB42
332
- request-changes,,EB43
333
362
  robot,,EC20
334
363
  rocket,,EB44
335
364
  root-folder-opened,,EB45
@@ -348,8 +377,10 @@ save,,EB4B
348
377
  screen-full,,EB4C
349
378
  screen-normal,,EB4D
350
379
  search-fuzzy,,EC0D
380
+ search-sparkle,,EC50
351
381
  search-stop,,EB4E
352
382
  search,,EA6D
383
+ send-to-remote-agent,,EC53
353
384
  send,,EC0F
354
385
  server-environment,,EBA3
355
386
  server-process,,EBA2
@@ -383,10 +414,10 @@ symbol-enum-member,,EB5E
383
414
  symbol-enum,,EA95
384
415
  symbol-event,,EA86
385
416
  symbol-field,,EB5F
386
- symbol-file,,EB60
387
417
  symbol-interface,,EB61
388
418
  symbol-key,,EA93
389
419
  symbol-keyword,,EB62
420
+ symbol-method-arrow,,EC41
390
421
  symbol-method,,EA8C
391
422
  symbol-misc,,EB63
392
423
  symbol-namespace,,EA8B