vscode/.vscode/shared.code-snippets

41 lines
1.4 KiB
Text
Raw Normal View History

{
// Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. The scope defines in watch languages the snippet is applicable. 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:
2018-10-24 13:19:39 +00:00
"MSFT Copyright Header": {
"scope": "javascript,typescript,css",
"prefix": [
"header",
"stub",
"copyright"
],
"body": [
"/*---------------------------------------------------------------------------------------------",
" * Copyright (c) Microsoft Corporation. All rights reserved.",
" * Licensed under the MIT License. See License.txt in the project root for license information.",
" *--------------------------------------------------------------------------------------------*/",
"",
"$0"
],
"description": "Insert Copyright Statement"
},
2018-10-01 15:58:56 +00:00
"TS -> Inject Service": {
2019-01-07 09:44:56 +00:00
"scope": "typescript",
2018-10-01 15:58:56 +00:00
"description": "Constructor Injection Pattern",
"prefix": "@inject",
"body": "@$1 private readonly _$2: ${1},$0"
},
"TS -> Event & Emitter": {
2019-01-07 09:44:56 +00:00
"scope": "typescript",
2018-10-01 15:58:56 +00:00
"prefix": "emitter",
"description": "Add emitter and event properties",
"body": [
2018-11-07 15:52:02 +00:00
"private readonly _onDid$1 = new Emitter<$2>();",
2018-10-01 15:58:56 +00:00
"readonly onDid$1: Event<$2> = this._onDid$1.event;"
],
}
}