1
0
mirror of https://github.com/konpa/devicon.git synced 2025-02-19 23:04:35 +01:00
devicon/.vscode/devicon.code-snippets
Josélio Júnior 678f0cb477
add feature: vs code intellisense to devicon.json (#1487)
* Add VS Code Intellisense to `devicon.json`

VS Code Intellisense provides these features:
- A snippet to create a new input object by typing `new`
- Validates
    - `name` structure
    - `color` structure
    - `version.svg[]`, `version.font[]`, `aliases.?base` and `aliases.?alias` completion
- Provides some description for the properties based on the documentation

* Fix name pattern and add `dot-net` exception

* Update .vscode/devicon-schema.json

Co-authored-by: Jørgen Kalsnes Hagen <43886029+Snailedlt@users.noreply.github.com>

* Update .vscode/devicon.code-snippets

Great!

Co-authored-by: Jørgen Kalsnes Hagen <43886029+Snailedlt@users.noreply.github.com>

* Update .vscode/devicon-schema.json

Agreed! It's more detailed now!

Co-authored-by: Jørgen Kalsnes Hagen <43886029+Snailedlt@users.noreply.github.com>

* Update .vscode/devicon-schema.json

Great!

Co-authored-by: Jørgen Kalsnes Hagen <43886029+Snailedlt@users.noreply.github.com>

Co-authored-by: Jørgen Kalsnes Hagen <43886029+Snailedlt@users.noreply.github.com>
2022-12-10 11:58:13 +01:00

25 lines
536 B
Plaintext

{
"new entry": {
"scope": "json",
"prefix": "new",
"description": "Inserts the new entry template object. Use it ONLY in \"devicon.json\"!",
"body": [
"{",
" \"name\": \"\",",
" \"altnames\": [],",
" \"tags\": [],",
" \"versions\": {",
" \"svg\": [",
" \"\"",
" ],",
" \"font\": [",
" \"\"",
" ]",
" },",
" \"color\": \"\",",
" \"aliases\": []",
"},"
]
}
}