Skip to content

Commit 18eb2af

Browse files
authored
fix: async plugin (#19)
1 parent a1f69fa commit 18eb2af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

snippets/snippets-js.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"ffplugin"
2222
],
2323
"body": [
24-
"app.register(function plugin (app, opts, next) {",
25-
" next()",
24+
"app.register(async function plugin (app, opts) {",
25+
" ${0}",
2626
"})"
2727
],
2828
"description": "Add an empty plugin"

snippets/snippets-ts.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"scope": "typescript",
2020
"prefix": ["ffregister", "ffplugin"],
2121
"body": [
22-
"app.register(function plugin (app, opts, next) {",
23-
" next()",
22+
"app.register(async function plugin (app, opts) {",
23+
" ${0}",
2424
"})"
2525
],
2626
"description": "Add an empty plugin"

0 commit comments

Comments
 (0)