@vscode/codicons 0.0.24 → 0.0.28
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/workflows/codeql-analysis.yml +71 -0
- package/README.md +16 -3
- package/dist/codicon.css +21 -2
- package/dist/codicon.csv +18 -0
- package/dist/codicon.html +529 -385
- package/dist/codicon.svg +1 -0
- package/dist/codicon.ttf +0 -0
- package/package.json +8 -14
- package/scripts/svg-sprite.js +39 -0
- package/src/icons/azure-devops.svg +1 -0
- package/src/icons/case-sensitive.svg +1 -1
- package/src/icons/issue-draft.svg +1 -1
- package/src/icons/layout-activitybar-left.svg +1 -0
- package/src/icons/layout-activitybar-right.svg +1 -0
- package/src/icons/layout-centered.svg +1 -0
- package/src/icons/layout-menubar.svg +1 -0
- package/src/icons/layout-panel-center.svg +1 -0
- package/src/icons/layout-panel-justify.svg +1 -0
- package/src/icons/layout-panel-left.svg +1 -0
- package/src/icons/layout-panel-right.svg +1 -0
- package/src/icons/layout-panel.svg +1 -0
- package/src/icons/layout-sidebar-left.svg +1 -0
- package/src/icons/layout-sidebar-right.svg +1 -0
- package/src/icons/layout-statusbar.svg +1 -0
- package/src/icons/layout.svg +1 -0
- package/src/icons/lock-small.svg +1 -0
- package/src/icons/newline.svg +1 -0
- package/src/icons/preserve-case.svg +1 -1
- package/src/icons/target.svg +1 -0
- package/src/icons/verified-filled.svg +1 -0
- package/src/icons/whole-word.svg +1 -1
- package/src/template/mapping.json +19 -1
- package/src/template/preview.hbs +3 -3
- package/src/template/styles.hbs +2 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [ main ]
|
|
17
|
+
pull_request:
|
|
18
|
+
# The branches below must be a subset of the branches above
|
|
19
|
+
branches: [ main ]
|
|
20
|
+
schedule:
|
|
21
|
+
- cron: '30 18 * * 2'
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
analyze:
|
|
25
|
+
name: Analyze
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
permissions:
|
|
28
|
+
actions: read
|
|
29
|
+
contents: read
|
|
30
|
+
security-events: write
|
|
31
|
+
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
language: [ 'javascript' ]
|
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
|
37
|
+
# Learn more:
|
|
38
|
+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
|
39
|
+
|
|
40
|
+
steps:
|
|
41
|
+
- name: Checkout repository
|
|
42
|
+
uses: actions/checkout@v2
|
|
43
|
+
|
|
44
|
+
# Initializes the CodeQL tools for scanning.
|
|
45
|
+
- name: Initialize CodeQL
|
|
46
|
+
uses: github/codeql-action/init@v1
|
|
47
|
+
with:
|
|
48
|
+
languages: ${{ matrix.language }}
|
|
49
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
50
|
+
# By default, queries listed here will override any specified in a config file.
|
|
51
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
52
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
53
|
+
|
|
54
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
55
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
56
|
+
- name: Autobuild
|
|
57
|
+
uses: github/codeql-action/autobuild@v1
|
|
58
|
+
|
|
59
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
60
|
+
# 📚 https://git.io/JvXDl
|
|
61
|
+
|
|
62
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
63
|
+
# and modify them (or add more) to build your code if your project
|
|
64
|
+
# uses a compiled language
|
|
65
|
+
|
|
66
|
+
#- run: |
|
|
67
|
+
# make bootstrap
|
|
68
|
+
# make release
|
|
69
|
+
|
|
70
|
+
- name: Perform CodeQL Analysis
|
|
71
|
+
uses: github/codeql-action/analyze@v1
|
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@vscode/codicons)
|
|
4
4
|
[](https://www.npmjs.com/package/@vscode/codicons)
|
|
5
5
|
[](https://github.com/microsoft/vscode-codicons/actions/workflows/build.yml)
|
|
6
|
+
[](https://github.com/microsoft/vscode-codicons/actions/workflows/build.yml)
|
|
6
7
|
|
|
7
8
|

|
|
8
9
|
|
|
@@ -53,16 +54,28 @@ Export your icons (svg) to the `src/icons` folder and add an entry into `src/tem
|
|
|
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
55
|
|
|
55
56
|
|
|
56
|
-
## Using
|
|
57
|
+
## Using CSS Classes
|
|
57
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
60
|
|
|
60
|
-
When needing to reference an icon in the [Visual Studio Code source code](https://github.com/microsoft/vscode), simply create a dom element/container that contains `codicon` and the [icon name](https://microsoft.github.io/vscode-codicons/dist/codicon.html) like:
|
|
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:
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
```html
|
|
64
|
+
<div class='codicon codicon-add'></div>
|
|
65
|
+
```
|
|
63
66
|
|
|
64
67
|
It's recommended to use a single dom element for each icon and not to add children elements to it.
|
|
65
68
|
|
|
69
|
+
## Using SVG Sprites
|
|
70
|
+
|
|
71
|
+
When needing to use the `codicon.svg` sprite file, you can reference icons using the following method:
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<svg>
|
|
75
|
+
<use xlink:href="codicon.svg#add" />
|
|
76
|
+
</svg>
|
|
77
|
+
```
|
|
78
|
+
|
|
66
79
|
# Contributing
|
|
67
80
|
|
|
68
81
|
This project welcomes contributions and suggestions. Most contributions require you to agree to a
|
package/dist/codicon.css
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
@font-face {
|
|
7
7
|
font-family: "codicon";
|
|
8
|
-
|
|
8
|
+
font-display: block;
|
|
9
|
+
src: url("./codicon.ttf?c8db4d929c275be999e86c624427a6af") format("truetype");
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.codicon[class*='codicon-'] {
|
|
12
13
|
font: normal normal normal 16px/1 codicon;
|
|
13
|
-
display: block;
|
|
14
|
+
display: inline-block;
|
|
14
15
|
text-decoration: none;
|
|
15
16
|
text-rendering: auto;
|
|
16
17
|
text-align: center;
|
|
@@ -495,3 +496,21 @@
|
|
|
495
496
|
.codicon-bracket:before { content: "\eb0f" }
|
|
496
497
|
.codicon-bracket-dot:before { content: "\ebe5" }
|
|
497
498
|
.codicon-bracket-error:before { content: "\ebe6" }
|
|
499
|
+
.codicon-lock-small:before { content: "\ebe7" }
|
|
500
|
+
.codicon-azure-devops:before { content: "\ebe8" }
|
|
501
|
+
.codicon-verified-filled:before { content: "\ebe9" }
|
|
502
|
+
.codicon-newline:before { content: "\ebea" }
|
|
503
|
+
.codicon-layout:before { content: "\ebeb" }
|
|
504
|
+
.codicon-layout-activitybar-left:before { content: "\ebec" }
|
|
505
|
+
.codicon-layout-activitybar-right:before { content: "\ebed" }
|
|
506
|
+
.codicon-layout-panel-left:before { content: "\ebee" }
|
|
507
|
+
.codicon-layout-panel-center:before { content: "\ebef" }
|
|
508
|
+
.codicon-layout-panel-justify:before { content: "\ebf0" }
|
|
509
|
+
.codicon-layout-panel-right:before { content: "\ebf1" }
|
|
510
|
+
.codicon-layout-panel:before { content: "\ebf2" }
|
|
511
|
+
.codicon-layout-sidebar-left:before { content: "\ebf3" }
|
|
512
|
+
.codicon-layout-sidebar-right:before { content: "\ebf4" }
|
|
513
|
+
.codicon-layout-statusbar:before { content: "\ebf5" }
|
|
514
|
+
.codicon-layout-menubar:before { content: "\ebf6" }
|
|
515
|
+
.codicon-layout-centered:before { content: "\ebf7" }
|
|
516
|
+
.codicon-target:before { content: "\ebf8" }
|
package/dist/codicon.csv
CHANGED
|
@@ -13,6 +13,7 @@ arrow-small-right,,EA9F
|
|
|
13
13
|
arrow-small-up,,EAA0
|
|
14
14
|
arrow-swap,,EBCB
|
|
15
15
|
arrow-up,,EAA1
|
|
16
|
+
azure-devops,,EBE8
|
|
16
17
|
azure,,EBD8
|
|
17
18
|
beaker-stop,,EBE1
|
|
18
19
|
beaker,,EA79
|
|
@@ -188,6 +189,19 @@ law,,EB12
|
|
|
188
189
|
layers-active,,EBD4
|
|
189
190
|
layers-dot,,EBD3
|
|
190
191
|
layers,,EBD2
|
|
192
|
+
layout-activitybar-left,,EBEC
|
|
193
|
+
layout-activitybar-right,,EBED
|
|
194
|
+
layout-centered,,EBF7
|
|
195
|
+
layout-menubar,,EBF6
|
|
196
|
+
layout-panel-center,,EBEF
|
|
197
|
+
layout-panel-justify,,EBF0
|
|
198
|
+
layout-panel-left,,EBEE
|
|
199
|
+
layout-panel-right,,EBF1
|
|
200
|
+
layout-panel,,EBF2
|
|
201
|
+
layout-sidebar-left,,EBF3
|
|
202
|
+
layout-sidebar-right,,EBF4
|
|
203
|
+
layout-statusbar,,EBF5
|
|
204
|
+
layout,,EBEB
|
|
191
205
|
library,,EB9C
|
|
192
206
|
lightbulb-autofix,,EB13
|
|
193
207
|
lightbulb,,EA61
|
|
@@ -202,6 +216,7 @@ list-unordered,,EB17
|
|
|
202
216
|
live-share,,EB18
|
|
203
217
|
loading,,EB19
|
|
204
218
|
location,,EB1A
|
|
219
|
+
lock-small,,EBE7
|
|
205
220
|
lock,,EA75
|
|
206
221
|
magnet,,EBAE
|
|
207
222
|
mail-read,,EB1B
|
|
@@ -219,6 +234,7 @@ multiple-windows,,EB23
|
|
|
219
234
|
mute,,EB24
|
|
220
235
|
new-file,,EA7F
|
|
221
236
|
new-folder,,EA80
|
|
237
|
+
newline,,EBEA
|
|
222
238
|
no-newline,,EB25
|
|
223
239
|
note,,EB26
|
|
224
240
|
notebook-template,,EBBF
|
|
@@ -332,6 +348,7 @@ sync-ignored,,EB9F
|
|
|
332
348
|
sync,,EA77
|
|
333
349
|
table,,EBB7
|
|
334
350
|
tag,,EA66
|
|
351
|
+
target,,EBF8
|
|
335
352
|
tasklist,,EB67
|
|
336
353
|
telescope,,EB68
|
|
337
354
|
terminal-bash,,EBCA
|
|
@@ -362,6 +379,7 @@ unlock,,EB74
|
|
|
362
379
|
unmute,,EB75
|
|
363
380
|
unverified,,EB76
|
|
364
381
|
variable-group,,EBB8
|
|
382
|
+
verified-filled,,EBE9
|
|
365
383
|
verified,,EB77
|
|
366
384
|
versions,,EB78
|
|
367
385
|
vm-active,,EB79
|