Update toolkit.code-snippets
This commit is contained in:
parent
a0b33a2211
commit
18e77880da
16
.vscode/toolkit.code-snippets
vendored
16
.vscode/toolkit.code-snippets
vendored
@ -25,5 +25,21 @@
|
|||||||
"scope": "javascript,typescript",
|
"scope": "javascript,typescript",
|
||||||
"prefix": "appendElement",
|
"prefix": "appendElement",
|
||||||
"body": "appendElement({ tag: '$1' }, $2);"
|
"body": "appendElement({ tag: '$1' }, $2);"
|
||||||
|
},
|
||||||
|
"register Notifier": {
|
||||||
|
"scope": "javascript,typescript",
|
||||||
|
"prefix": "registerObserver",
|
||||||
|
"body": [
|
||||||
|
"registerObserver({",
|
||||||
|
"\t notify: (",
|
||||||
|
"\t\tevent: _ZoteroTypes.Notifier.Event,",
|
||||||
|
"\t\ttype: _ZoteroTypes.Notifier.Type,",
|
||||||
|
"\t\tids: string[],",
|
||||||
|
"\t\textraData: _ZoteroTypes.anyObj",
|
||||||
|
"\t) => {",
|
||||||
|
"\t\t$0",
|
||||||
|
"\t}",
|
||||||
|
"});"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user