From 8ab65be4aaf665b74a0689ff11c40a69954aff6b Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Wed, 23 Sep 2020 13:32:13 -0400 Subject: [PATCH] meta: add IconEntry code snippets --- .vscode/phosphor-web.code-snippets | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .vscode/phosphor-web.code-snippets diff --git a/.vscode/phosphor-web.code-snippets b/.vscode/phosphor-web.code-snippets new file mode 100644 index 0000000..041b4ca --- /dev/null +++ b/.vscode/phosphor-web.code-snippets @@ -0,0 +1,30 @@ +{ + // Place your phosphor-web workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and + // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope + // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is + // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. + // Placeholders with the same ids are connected. + // Example: + // "Print to console": { + // "scope": "javascript,typescript", + // "prefix": "log", + // "body": [ + // "console.log('$1');", + // "$2" + // ], + // "description": "Log output to console" + // } + "IconEntry": { + "prefix": "ie", + "body": [ + "{", + "\tname: \"${1:name}\",", + "\tcategories: [IconCategory${2:categories}],", + "\ttags: [${3:tags}],", + "\tIcon: ${4:icon},", + "}," + ], + "description": "Create an IconEntry for phosphor-web" + } +} \ No newline at end of file