-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
408 lines (408 loc) · 17.5 KB
/
package.json
File metadata and controls
408 lines (408 loc) · 17.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
{
"name": "materialdesignicons-intellisense",
"displayName": "Material Design Icons Intellisense",
"description": "Provides intellisense for Material Design Icons",
"version": "4.1.0",
"engines": {
"vscode": "^1.62.0"
},
"categories": [
"Other"
],
"publisher": "lukas-tr",
"repository": {
"type": "git",
"url": "https://github.com/lukas-tr/vscode-materialdesignicons-intellisense.git"
},
"license": "MIT",
"keywords": [
"material-design",
"icons",
"mdi"
],
"icon": "icons/logo.png",
"galleryBanner": {
"color": "#0091EA",
"theme": "dark"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"views": {
"explorer": [
{
"id": "materialDesignIconsExplorer",
"name": "MDI Explorer",
"icon": "icons/vector-square.svg"
}
]
},
"menus": {
"view/title": [
{
"command": "materialdesigniconsIntellisense.showIconSearch",
"when": "view == materialDesignIconsExplorer",
"group": "navigation"
},
{
"command": "materialdesigniconsIntellisense.changeInsertStyle",
"when": "view == materialDesignIconsExplorer",
"group": "navigation"
},
{
"command": "materialdesigniconsIntellisense.changeLanguages",
"when": "view == materialDesignIconsExplorer"
},
{
"command": "materialdesigniconsIntellisense.changeMdiVersion",
"when": "view == materialDesignIconsExplorer"
},
{
"command": "materialdesigniconsIntellisense.changeSettings",
"when": "view == materialDesignIconsExplorer"
}
],
"view/item/context": [
{
"command": "materialdesigniconsIntellisense.insertIconInActiveEditor",
"when": "view == materialDesignIconsExplorer && viewItem == mdiIcon",
"group": "inline"
},
{
"command": "materialdesigniconsIntellisense.closeSearch",
"when": "view == materialDesignIconsExplorer && viewItem == mdiSearch",
"group": "inline"
}
]
},
"configuration": [
{
"title": "Material Design Icons Intellisense",
"properties": {
"materialdesigniconsIntellisense.iconColor": {
"type": "string",
"default": "#bababa",
"pattern": "^#([0-9a-fA-F]{3}){1,2}$",
"description": "RGB color of the icon in the completion and hover docs"
},
"materialdesigniconsIntellisense.iconSize": {
"type": "integer",
"default": 100,
"minimum": 10,
"description": "Size of the icon in the completion and hover docs in pixels"
},
"materialdesigniconsIntellisense.selector": {
"type": "array",
"default": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"html",
"vue-pug",
"vue-html",
"vue",
"ng-template",
"yaml",
"home-assistant",
"dart"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"description": "Defines the documents where completion and hover are active"
},
"materialdesigniconsIntellisense.includeAliases": {
"type": "boolean",
"default": true,
"description": "Also include icon aliases in completion items"
},
"materialdesigniconsIntellisense.mdiVersion": {
"type": "string",
"default": "latest",
"markdownDescription": "`@mdi/svg` version to use. This can either be `latest` or a specific version like `5.2.45`."
},
"materialdesigniconsIntellisense.light": {
"type": "boolean",
"default": false,
"description": "Use `@mdi/light-svg` instead of `@mdi/svg`"
},
"materialdesigniconsIntellisense.insertStyle": {
"type": "string",
"default": "kebabCase",
"markdownDescription": "Insert style for MDI Explorer. Available options in `#materialdesigniconsIntellisense.matchers#`."
},
"materialdesigniconsIntellisense.enableDecorations": {
"type": "boolean",
"default": true,
"description": "Show icon as editor decoration"
},
"materialdesigniconsIntellisense.decoration.size": {
"type": "string",
"default": "1em",
"markdownDescription": "Inline decoration width and height. Accepts [css length units](https://developer.mozilla.org/en-US/docs/Web/CSS/length)"
},
"materialdesigniconsIntellisense.decoration.margin": {
"type": "string",
"default": ".1em .1em .1em .1em",
"markdownDescription": "Inline decoration [margin](https://developer.mozilla.org/en-US/docs/Web/CSS/margin)."
},
"materialdesigniconsIntellisense.enableLinter": {
"type": "boolean",
"default": false,
"description": "Lint Home Assistant and kebab case icon names"
},
"materialdesigniconsIntellisense.linter.ignorePaths": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Directories ignored by the linter. Can be a glob pattern (relative to workspace root): \n- `\"output/**\"` - ignore all files in the output folder\n- `\"config.yaml\"` - ignore contents of a single file."
},
"materialdesigniconsIntellisense.ignoredIcons": {
"type": "array",
"default": [
"mdi-18px",
"mdi-24px",
"mdi-36px",
"mdi-48px",
"mdi-rotate-45",
"mdi-rotate-90",
"mdi-rotate-135",
"mdi-rotate-180",
"mdi-rotate-225",
"mdi-rotate-270",
"mdi-rotate-315",
"mdi-flip-h",
"mdi-flip-v",
"mdi-spin",
"mdi-light",
"mdi-dark",
"mdi-inactive",
"mdil-18px",
"mdil-24px",
"mdil-36px",
"mdil-48px",
"mdil-rotate-45",
"mdil-rotate-90",
"mdil-rotate-135",
"mdil-rotate-180",
"mdil-rotate-225",
"mdil-rotate-270",
"mdil-rotate-315",
"mdil-flip-h",
"mdil-flip-v",
"mdil-spin",
"mdil-light",
"mdil-dark",
"mdil-inactive"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "These values will be ignored by the linter."
},
"materialdesigniconsIntellisense.matchers": {
"type": "array",
"items": {
"type": "object",
"title": "matchers",
"properties": {
"match": {
"type": "string",
"description": "Regex used for hover previews and completion (prefix only)"
},
"insert": {
"type": "string",
"description": "Used for inserting from MDI Explorer."
},
"displayName": {
"type": "string",
"description": "Name shown when switching between insert types."
},
"name": {
"type": "string",
"description": "Identifier used for `#materialdesigniconsIntellisense.insertStyle#`"
},
"insertPrefix": {
"type": [
"string",
"null"
],
"default": null,
"description": "String inserted before `match`."
},
"insertSuffix": {
"type": [
"string",
"null"
],
"default": null,
"description": "String inserted after the icon name."
},
"light": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "This matcher is only active for `@mdi/light-svg`"
}
}
},
"default": [
{
"match": "\\bMdi\\.{camel}\\b",
"insert": "Icon(Mdi.{camel})",
"displayName": "Flutter (mdi)",
"name": "flutter1"
},
{
"match": "\\bMdiIcons\\.fromString\\(['\"]{camel}['\"]\\)",
"insert": "MdiIcons.fromString('{camel}')",
"displayName": "Flutter (material_design_icons_flutter, fromString)",
"name": "flutter2"
},
{
"match": "\\bMdiIcons\\.{camel}\\b",
"insert": "Icon(MdiIcons.{camel})",
"displayName": "Flutter (material_design_icons_flutter)",
"name": "flutter3"
},
{
"match": "\\bmdi-{param}\\b",
"insert": "mdi-{param}",
"displayName": "kebab-case (web font)",
"name": "kebabCase"
},
{
"match": "\\bmdi{pascal}\\b",
"insert": "mdi{pascal}",
"displayName": "camelCase (js)",
"name": "camelCase"
},
{
"match": "\\bmdi:{param}\\b",
"insert": "mdi:{param}",
"displayName": "Home Assistant",
"name": "homeAssistant"
},
{
"match": "\\bmdil-{param}\\b",
"insert": "mdil-{param}",
"displayName": "kebab-case (web font)",
"name": "kebabCaseLight",
"light": true
},
{
"match": "\\bmdi-light-{param}\\b",
"insert": "i-mdi-light-{param}",
"displayName": "Icones",
"name": "kebabCaseIcones",
"light": true
}
],
"markdownDescription": "See https://github.com/lukas-tr/vscode-materialdesignicons-intellisense#faq"
}
}
}
],
"commands": [
{
"command": "materialdesigniconsIntellisense.openIconPreview",
"when": "false",
"title": "Open icon preview"
},
{
"command": "materialdesigniconsIntellisense.showIconSearch",
"title": "Open icon search",
"icon": {
"light": "icons/light/magnify.svg",
"dark": "icons/dark/magnify.svg"
},
"category": "MDI"
},
{
"command": "materialdesigniconsIntellisense.changeLanguages",
"title": "Select languages",
"category": "MDI"
},
{
"command": "materialdesigniconsIntellisense.changeSettings",
"title": "Change settings",
"category": "MDI"
},
{
"command": "materialdesigniconsIntellisense.changeMdiVersion",
"title": "Change MDI version",
"icon": {
"light": "icons/light/toggle-switch.svg",
"dark": "icons/dark/toggle-switch.svg"
},
"category": "MDI"
},
{
"command": "materialdesigniconsIntellisense.changeInsertStyle",
"title": "Change insert style",
"icon": {
"light": "icons/light/format-letter-case.svg",
"dark": "icons/dark/format-letter-case.svg"
},
"category": "MDI"
},
{
"command": "materialdesigniconsIntellisense.performIconSearch",
"when": "false",
"title": "Icon search"
},
{
"command": "materialdesigniconsIntellisense.insertIconInActiveEditor",
"title": "Insert icon in editor",
"icon": {
"light": "icons/light/content-paste.svg",
"dark": "icons/dark/content-paste.svg"
},
"category": "MDI"
},
{
"command": "materialdesigniconsIntellisense.closeSearch",
"title": "Close icon search",
"icon": {
"light": "icons/light/close.svg",
"dark": "icons/dark/close.svg"
},
"category": "MDI"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.42",
"@types/picomatch": "^2.3.0",
"@types/semver": "^7.3.9",
"@types/tar": "^6.1.1",
"@types/vscode": "^1.62.0",
"tslint": "^6.1.3",
"typescript": "^4.7.3"
},
"dependencies": {
"axios": "^0.27.2",
"change-case": "^4.1.2",
"fuse.js": "^6.6.2",
"picomatch": "^2.3.1",
"semver": "^7.3.7",
"tar": "^6.1.11"
}
}