@vscode/codicons 0.0.35 → 0.0.36

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 (42) hide show
  1. package/.github/workflows/build.yml +42 -2
  2. package/.github/workflows/codeql-analysis.yml +4 -4
  3. package/.github/workflows/gh-pages.yml +61 -0
  4. package/.github/workflows/release.yml +65 -0
  5. package/README.md +3 -3
  6. package/dist/codicon.css +32 -2
  7. package/dist/codicon.csv +23 -1
  8. package/dist/codicon.html +176 -0
  9. package/dist/codicon.svg +1 -1
  10. package/dist/codicon.ttf +0 -0
  11. package/dist/codiconsLibrary.ts +581 -0
  12. package/package.json +7 -6
  13. package/scripts/export-to-ts.js +49 -0
  14. package/src/icons/code-oss.svg +1 -0
  15. package/src/icons/coverage.svg +1 -0
  16. package/src/icons/diff-multiple.svg +1 -0
  17. package/src/icons/diff-single.svg +1 -0
  18. package/src/icons/git-stash-apply.svg +1 -0
  19. package/src/icons/git-stash-pop.svg +1 -0
  20. package/src/icons/git-stash.svg +1 -0
  21. package/src/icons/github-project.svg +1 -0
  22. package/src/icons/go-to-search.svg +1 -0
  23. package/src/icons/lightbulb-sparkle.svg +1 -0
  24. package/src/icons/map-vertical-filled.svg +1 -0
  25. package/src/icons/map-vertical.svg +1 -0
  26. package/src/icons/mic-filled.svg +1 -1
  27. package/src/icons/mic.svg +1 -1
  28. package/src/icons/percentage.svg +1 -0
  29. package/src/icons/repo-fetch.svg +1 -0
  30. package/src/icons/repo-force-push.svg +1 -1
  31. package/src/icons/repo-pull.svg +1 -1
  32. package/src/icons/repo-push.svg +1 -1
  33. package/src/icons/robot.svg +1 -0
  34. package/src/icons/run-all-coverage.svg +1 -0
  35. package/src/icons/run-coverage.svg +1 -0
  36. package/src/icons/settings.svg +1 -1
  37. package/src/icons/share.svg +1 -0
  38. package/src/icons/sparkle-filled.svg +1 -0
  39. package/src/icons/surround-with.svg +1 -0
  40. package/src/icons/vscode-insiders.svg +1 -0
  41. package/src/icons/vscode.svg +1 -0
  42. package/src/template/mapping.json +31 -2
@@ -3,6 +3,8 @@ name: Codicons Build
3
3
  on:
4
4
  push:
5
5
  branches: [ main ]
6
+ tags:
7
+ - '*' # Only runs on annotated tags
6
8
  pull_request:
7
9
  branches: [ main ]
8
10
  workflow_dispatch:
@@ -12,8 +14,8 @@ jobs:
12
14
  runs-on: ubuntu-latest
13
15
 
14
16
  steps:
15
- - uses: actions/checkout@v2
16
- - uses: actions/setup-node@v2
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-node@v4
17
19
  with:
18
20
  node-version: '16'
19
21
 
@@ -22,3 +24,41 @@ jobs:
22
24
 
23
25
  - name: Build font
24
26
  run: npm run build
27
+
28
+ - name: Upload codicon.ttf as artifact
29
+ uses: actions/upload-artifact@v4
30
+ with:
31
+ name: codicon-font-${{ github.sha }}.ttf
32
+ path: dist/codicon.ttf
33
+
34
+ - name: PR to microsoft/vscode # TODO: Separate "deploy:" step?
35
+ env:
36
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
+ run: |
38
+ BRANCH="update-codicons"
39
+ MESSAGE="chore: Update codicons to ${{ github.sha }}"
40
+
41
+ git clone --depth=1 https://github.com/microsoft/vscode.git
42
+ cd vscode
43
+ git checkout -b $BRANCH
44
+
45
+ cp ../dist/codicon.ttf src/vs/base/browser/ui/codicons/codicon/
46
+ cp ../dist/codiconsLibrary.ts src/vs/base/common/
47
+ git add .
48
+
49
+ git config user.name "${{ github.actor }}"
50
+ git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
51
+ git commit -m "$MESSAGE"
52
+
53
+ # TODO: This doesn't work yet due to permissions
54
+ #
55
+ # git push -f origin $BRANCH
56
+
57
+ # echo "${{ secrets.ACCESS_TOKEN }}" > token.txt
58
+ # gh auth login --with-token < token.txt
59
+
60
+ # gh pr create \
61
+ # --title "$MESSAGE" \
62
+ # --body "" \
63
+ # --base "main" \
64
+ # --head "$BRANCH"
@@ -39,11 +39,11 @@ jobs:
39
39
 
40
40
  steps:
41
41
  - name: Checkout repository
42
- uses: actions/checkout@v2
42
+ uses: actions/checkout@v4
43
43
 
44
44
  # Initializes the CodeQL tools for scanning.
45
45
  - name: Initialize CodeQL
46
- uses: github/codeql-action/init@v1
46
+ uses: github/codeql-action/init@v3
47
47
  with:
48
48
  languages: ${{ matrix.language }}
49
49
  # If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
54
54
  # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55
55
  # If this step fails, then you should remove it and run the build manually (see below)
56
56
  - name: Autobuild
57
- uses: github/codeql-action/autobuild@v1
57
+ uses: github/codeql-action/autobuild@v3
58
58
 
59
59
  # ℹ️ Command-line programs to run using the OS shell.
60
60
  # 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
68
68
  # make release
69
69
 
70
70
  - name: Perform CodeQL Analysis
71
- uses: github/codeql-action/analyze@v1
71
+ uses: github/codeql-action/analyze@v3
@@ -0,0 +1,61 @@
1
+ name: Publish GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ workflow_dispatch:
7
+
8
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9
+ permissions:
10
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16
+ concurrency:
17
+ group: "pages"
18
+ cancel-in-progress: false
19
+
20
+ jobs:
21
+ # Build job
22
+ build:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: Checkout
26
+ uses: actions/checkout@v4
27
+
28
+ - uses: actions/setup-node@v4
29
+ with:
30
+ node-version: '16'
31
+
32
+ - name: Install dependencies
33
+ run: npm install
34
+
35
+ # Build so we can publish the dist/ folder
36
+ - name: Build font
37
+ run: npm run build
38
+
39
+ - name: Setup Pages
40
+ uses: actions/configure-pages@v4
41
+
42
+ - name: Build with Jekyll
43
+ uses: actions/jekyll-build-pages@v1
44
+ with:
45
+ source: ./
46
+ destination: ./_site
47
+ - name: Upload artifact
48
+
49
+ uses: actions/upload-pages-artifact@v3
50
+
51
+ # Deployment job
52
+ deploy:
53
+ environment:
54
+ name: github-pages
55
+ url: ${{ steps.deployment.outputs.page_url }}
56
+ runs-on: ubuntu-latest
57
+ needs: build
58
+ steps:
59
+ - name: Deploy to GitHub Pages
60
+ id: deployment
61
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,65 @@
1
+ # Create a release when a new tag is pushed
2
+ name: Codicons Release
3
+
4
+ on:
5
+ push:
6
+ branches: [ main ]
7
+ tags:
8
+ - '*' # Only runs on annotated tags
9
+ pull_request:
10
+ branches: [ main ]
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0 # All history
21
+ - uses: actions/setup-node@v4
22
+ with:
23
+ node-version: '16'
24
+
25
+ - name: Install dependencies
26
+ run: npm install
27
+
28
+ - name: Build font
29
+ run: npm run build
30
+
31
+ - name: Write release notes
32
+ if: startsWith(github.ref, 'refs/tags/')
33
+ run: | # List all commits since last tag
34
+ commits=$(git log --pretty=format:"* %s (%h)" $(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)...)
35
+ echo -e "This release includes:\n${commits}" > release_notes.txt
36
+
37
+ {
38
+ echo 'release_notes<<EOF'
39
+ cat release_notes.txt
40
+ echo EOF
41
+ } >> "$GITHUB_ENV"
42
+
43
+ - name: Create Release
44
+ if: startsWith(github.ref, 'refs/tags/')
45
+ id: create_release
46
+ uses: actions/create-release@v1
47
+ env:
48
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
+ with:
50
+ tag_name: ${{ github.ref }}
51
+ release_name: ${{ github.ref }}
52
+ draft: true
53
+ prerelease: false
54
+ body: ${{ env.release_notes }}
55
+
56
+ - name: Upload Release Asset
57
+ if: startsWith(github.ref, 'refs/tags/')
58
+ uses: actions/upload-release-asset@v1
59
+ env:
60
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61
+ with:
62
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
63
+ asset_path: ./dist/codicon.ttf
64
+ asset_name: codicon-font-${{ github.ref_name }}.ttf
65
+ asset_content_type: application/x-font-ttf
package/README.md CHANGED
@@ -37,7 +37,7 @@ npm install
37
37
  npm run build
38
38
  ```
39
39
 
40
- Output will be exported to a `dist` folder. We track this folder so that we can see the updated changes to the unicode characters.
40
+ Output will be exported to a `dist` folder.
41
41
 
42
42
  ## Update packages
43
43
 
@@ -51,12 +51,12 @@ 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/master/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://github.com/microsoft/vscode-codicons/blob/master/dist/codicon.css)).
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)).
55
55
 
56
56
 
57
57
  ## Using CSS Classes
58
58
 
59
- If you're building a VS Code extension, see this [webview extension sample](https://github.com/microsoft/vscode-extension-samples/tree/master/webview-codicons-sample) on how to integrate.
59
+ 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
60
 
61
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:
62
62
 
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?79130123c9d3674a686cf03962523e8a") format("truetype");
9
+ src: url("./codicon.ttf?38dcd33a732ebca5a557e04831e9e235") format("truetype");
10
10
  }
11
11
 
12
12
  .codicon[class*='codicon-'] {
@@ -265,6 +265,7 @@
265
265
  .codicon-diff-removed:before { content: "\eadf" }
266
266
  .codicon-diff-renamed:before { content: "\eae0" }
267
267
  .codicon-diff:before { content: "\eae1" }
268
+ .codicon-diff-sidebyside:before { content: "\eae1" }
268
269
  .codicon-discard:before { content: "\eae2" }
269
270
  .codicon-editor-layout:before { content: "\eae3" }
270
271
  .codicon-empty-window:before { content: "\eae4" }
@@ -572,7 +573,11 @@
572
573
  .codicon-blank:before { content: "\ec03" }
573
574
  .codicon-heart-filled:before { content: "\ec04" }
574
575
  .codicon-map:before { content: "\ec05" }
576
+ .codicon-map-horizontal:before { content: "\ec05" }
577
+ .codicon-fold-horizontal:before { content: "\ec05" }
575
578
  .codicon-map-filled:before { content: "\ec06" }
579
+ .codicon-map-horizontal-filled:before { content: "\ec06" }
580
+ .codicon-fold-horizontal-filled:before { content: "\ec06" }
576
581
  .codicon-circle-small:before { content: "\ec07" }
577
582
  .codicon-bell-slash:before { content: "\ec08" }
578
583
  .codicon-bell-slash-dot:before { content: "\ec09" }
@@ -595,5 +600,30 @@
595
600
  .codicon-piano:before { content: "\ec1a" }
596
601
  .codicon-music:before { content: "\ec1b" }
597
602
  .codicon-mic-filled:before { content: "\ec1c" }
598
- .codicon-git-fetch:before { content: "\ec1d" }
603
+ .codicon-repo-fetch:before { content: "\ec1d" }
599
604
  .codicon-copilot:before { content: "\ec1e" }
605
+ .codicon-lightbulb-sparkle:before { content: "\ec1f" }
606
+ .codicon-robot:before { content: "\ec20" }
607
+ .codicon-sparkle-filled:before { content: "\ec21" }
608
+ .codicon-diff-single:before { content: "\ec22" }
609
+ .codicon-diff-multiple:before { content: "\ec23" }
610
+ .codicon-surround-with:before { content: "\ec24" }
611
+ .codicon-share:before { content: "\ec25" }
612
+ .codicon-git-stash:before { content: "\ec26" }
613
+ .codicon-git-stash-apply:before { content: "\ec27" }
614
+ .codicon-git-stash-pop:before { content: "\ec28" }
615
+ .codicon-vscode:before { content: "\ec29" }
616
+ .codicon-vscode-insiders:before { content: "\ec2a" }
617
+ .codicon-code-oss:before { content: "\ec2b" }
618
+ .codicon-run-coverage:before { content: "\ec2c" }
619
+ .codicon-run-all-coverage:before { content: "\ec2d" }
620
+ .codicon-coverage:before { content: "\ec2e" }
621
+ .codicon-github-project:before { content: "\ec2f" }
622
+ .codicon-map-vertical:before { content: "\ec30" }
623
+ .codicon-fold-vertical:before { content: "\ec30" }
624
+ .codicon-map-vertical-filled:before { content: "\ec31" }
625
+ .codicon-fold-vertical-filled:before { content: "\ec31" }
626
+ .codicon-go-to-search:before { content: "\ec32" }
627
+ .codicon-percentage:before { content: "\ec33" }
628
+ .codicon-sort-percentage:before { content: "\ec33" }
629
+ .codicon-git-fetch:before { content: "\f101" }
package/dist/codicon.csv CHANGED
@@ -66,6 +66,7 @@ close,,EA76
66
66
  cloud-download,,EAC2
67
67
  cloud-upload,,EAC3
68
68
  cloud,,EBAA
69
+ code-oss,,EC2B
69
70
  code,,EAC4
70
71
  coffee,,EC15
71
72
  collapse-all,,EAC5
@@ -80,6 +81,7 @@ compass-dot,,EBD6
80
81
  compass,,EBD5
81
82
  copilot,,EC1E
82
83
  copy,,EBCC
84
+ coverage,,EC2E
83
85
  credit-card,,EAC9
84
86
  dash,,EACC
85
87
  dashboard,,EACD
@@ -123,8 +125,10 @@ device-mobile,,EADB
123
125
  diff-added,,EADC
124
126
  diff-ignored,,EADD
125
127
  diff-modified,,EADE
128
+ diff-multiple,,EC23
126
129
  diff-removed,,EADF
127
130
  diff-renamed,,EAE0
131
+ diff-single,,EC22
128
132
  diff,,EAE1
129
133
  discard,,EAE2
130
134
  edit,,EA73
@@ -166,7 +170,7 @@ gift,,EAF9
166
170
  gist-secret,,EAFA
167
171
  git-commit,,EAFC
168
172
  git-compare,,EAFD
169
- git-fetch,,EC1D
173
+ git-fetch,,F101
170
174
  git-merge,,EAFE
171
175
  git-pull-request-closed,,EBDA
172
176
  git-pull-request-create,,EBBC
@@ -174,12 +178,17 @@ git-pull-request-draft,,EBDB
174
178
  git-pull-request-go-to-changes,,EC0B
175
179
  git-pull-request-new-changes,,EC0C
176
180
  git-pull-request,,EA64
181
+ git-stash-apply,,EC27
182
+ git-stash-pop,,EC28
183
+ git-stash,,EC26
177
184
  github-action,,EAFF
178
185
  github-alt,,EB00
179
186
  github-inverted,,EBA1
187
+ github-project,,EC2F
180
188
  github,,EA84
181
189
  globe,,EB01
182
190
  go-to-file,,EA94
191
+ go-to-search,,EC32
183
192
  grabber,,EB02
184
193
  graph-left,,EBAD
185
194
  graph-line,,EBE2
@@ -228,6 +237,7 @@ layout-statusbar,,EBF5
228
237
  layout,,EBEB
229
238
  library,,EB9C
230
239
  lightbulb-autofix,,EB13
240
+ lightbulb-sparkle,,EC1F
231
241
  lightbulb,,EA61
232
242
  link-external,,EB14
233
243
  link,,EB15
@@ -246,6 +256,8 @@ magnet,,EBAE
246
256
  mail-read,,EB1B
247
257
  mail,,EB1C
248
258
  map-filled,,EC06
259
+ map-vertical-filled,,EC31
260
+ map-vertical,,EC30
249
261
  map,,EC05
250
262
  markdown,,EB1D
251
263
  megaphone,,EB1E
@@ -276,6 +288,7 @@ package,,EB29
276
288
  paintcan,,EB2A
277
289
  pass-filled,,EBB3
278
290
  pass,,EBA4
291
+ percentage,,EC33
279
292
  person-add,,EBCD
280
293
  person,,EA67
281
294
  piano,,EC1A
@@ -309,6 +322,7 @@ replace-all,,EB3C
309
322
  replace,,EB3D
310
323
  reply,,EA7D
311
324
  repo-clone,,EB3E
325
+ repo-fetch,,EC1D
312
326
  repo-force-push,,EB3F
313
327
  repo-forked,,EA63
314
328
  repo-pull,,EB40
@@ -316,14 +330,17 @@ repo-push,,EB41
316
330
  repo,,EA62
317
331
  report,,EB42
318
332
  request-changes,,EB43
333
+ robot,,EC20
319
334
  rocket,,EB44
320
335
  root-folder-opened,,EB45
321
336
  root-folder,,EB46
322
337
  rss,,EB47
323
338
  ruby,,EB48
324
339
  run-above,,EBBD
340
+ run-all-coverage,,EC2D
325
341
  run-all,,EB9E
326
342
  run-below,,EBBE
343
+ run-coverage,,EC2C
327
344
  run-errors,,EBDE
328
345
  save-all,,EB49
329
346
  save-as,,EB4A
@@ -339,6 +356,7 @@ server-process,,EBA2
339
356
  server,,EB50
340
357
  settings-gear,,EB51
341
358
  settings,,EB52
359
+ share,,EC25
342
360
  shield,,EB53
343
361
  sign-in,,EA6F
344
362
  sign-out,,EA6E
@@ -346,6 +364,7 @@ smiley,,EB54
346
364
  snake,,EC16
347
365
  sort-precedence,,EB55
348
366
  source-control,,EA68
367
+ sparkle-filled,,EC21
349
368
  sparkle,,EC10
350
369
  split-horizontal,,EB56
351
370
  split-vertical,,EB57
@@ -354,6 +373,7 @@ star-empty,,EA6A
354
373
  star-full,,EB59
355
374
  star-half,,EB5A
356
375
  stop-circle,,EBA5
376
+ surround-with,,EC24
357
377
  symbol-array,,EA8A
358
378
  symbol-boolean,,EA8F
359
379
  symbol-class,,EB5B
@@ -425,6 +445,8 @@ vm-outline,,EB7A
425
445
  vm-running,,EB7B
426
446
  vm,,EA7A
427
447
  vr,,EC18
448
+ vscode-insiders,,EC2A
449
+ vscode,,EC29
428
450
  wand,,EBCF
429
451
  warning,,EA6C
430
452
  watch,,EB7C