File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to the "nuxt-vscode-snippets" extension will be documented i
4
4
5
5
Check [ Keep a Changelog] ( http://keepachangelog.com/ ) for recommendations on how to structure this file.
6
6
7
+ ## 2.3.1
8
+
9
+ ### Fixes
10
+
11
+ - Adjust snippet for the Nuxt error handling
12
+
7
13
## 2.3.0
8
14
9
15
### Added
Original file line number Diff line number Diff line change 3
3
"displayName" : " Nuxt VS Code Snippets" ,
4
4
"description" : " Supercharge your Nuxt development with powerful snippets" ,
5
5
"icon" : " images/nuxt-logo.png" ,
6
- "version" : " 2.3.0 " ,
6
+ "version" : " 2.3.1 " ,
7
7
"publisher" : " zhaolinlau" ,
8
8
"license" : " MIT" ,
9
9
"author" : {
40
40
},
41
41
"scripts" : {
42
42
"build" : " vsce package -o nuxt-vscode-snippets-$npm_package_version.vsix" ,
43
- "install" : " pnpm build && code --install-extension nuxt-vscode-snippets-$npm_package_version.vsix"
43
+ "install" : " npm run build && code --install-extension nuxt-vscode-snippets-$npm_package_version.vsix"
44
44
},
45
45
"contributes" : {
46
46
"languages" : [
Original file line number Diff line number Diff line change 225
225
"Nuxt useError" : {
226
226
"prefix" : " nerr" ,
227
227
"body" : [
228
- " useError()"
228
+ " const error = useError()"
229
229
],
230
230
"description" : " Nuxt useError composable"
231
231
},
232
232
"Nuxt createError" : {
233
233
"prefix" : " ncerr" ,
234
234
"body" : [
235
- " throw createError(${0:err})"
235
+ " createError({" ,
236
+ " \t statusCode: ${1}," ,
237
+ " \t statusMessage: ${2}" ,
238
+ " })"
236
239
],
237
240
"description" : " Nuxt createError utility"
238
241
},
239
242
"Nuxt showError" : {
240
243
"prefix" : " nshwerr" ,
241
244
"body" : [
242
- " showError(${0:error})"
245
+ " showError({" ,
246
+ " \t statusCode: ${1}," ,
247
+ " \t statusMessage: ${2}" ,
248
+ " })"
243
249
],
244
250
"description" : " Nuxt showError utility"
245
251
},
246
252
"Nuxt clearError" : {
247
253
"prefix" : " nclrerr" ,
248
254
"body" : [
249
- " clearError(${0:options })"
255
+ " clearError({ redirect: ${0} })"
250
256
],
251
257
"description" : " Nuxt clearError utility"
252
258
},
You can’t perform that action at this time.
0 commit comments