File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 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
44
55Check [ Keep a Changelog] ( http://keepachangelog.com/ ) for recommendations on how to structure this file.
66
7+ ## 2.3.1
8+
9+ ### Fixes
10+
11+ - Adjust snippet for the Nuxt error handling
12+
713## 2.3.0
814
915### Added
Original file line number Diff line number Diff line change 33 "displayName" : " Nuxt VS Code Snippets" ,
44 "description" : " Supercharge your Nuxt development with powerful snippets" ,
55 "icon" : " images/nuxt-logo.png" ,
6- "version" : " 2.3.0 " ,
6+ "version" : " 2.3.1 " ,
77 "publisher" : " zhaolinlau" ,
88 "license" : " MIT" ,
99 "author" : {
4040 },
4141 "scripts" : {
4242 "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"
4444 },
4545 "contributes" : {
4646 "languages" : [
Original file line number Diff line number Diff line change 225225 "Nuxt useError" : {
226226 "prefix" : " nerr" ,
227227 "body" : [
228- " useError()"
228+ " const error = useError()"
229229 ],
230230 "description" : " Nuxt useError composable"
231231 },
232232 "Nuxt createError" : {
233233 "prefix" : " ncerr" ,
234234 "body" : [
235- " throw createError(${0:err})"
235+ " createError({" ,
236+ " \t statusCode: ${1}," ,
237+ " \t statusMessage: ${2}" ,
238+ " })"
236239 ],
237240 "description" : " Nuxt createError utility"
238241 },
239242 "Nuxt showError" : {
240243 "prefix" : " nshwerr" ,
241244 "body" : [
242- " showError(${0:error})"
245+ " showError({" ,
246+ " \t statusCode: ${1}," ,
247+ " \t statusMessage: ${2}" ,
248+ " })"
243249 ],
244250 "description" : " Nuxt showError utility"
245251 },
246252 "Nuxt clearError" : {
247253 "prefix" : " nclrerr" ,
248254 "body" : [
249- " clearError(${0:options })"
255+ " clearError({ redirect: ${0} })"
250256 ],
251257 "description" : " Nuxt clearError utility"
252258 },
You can’t perform that action at this time.
0 commit comments