Skip to content

Commit 7bcaf21

Browse files
committed
fix: typo in javascript snippets and enable snippets in js and ts files too
1 parent b77f5e4 commit 7bcaf21

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

packages/vscode/package.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,36 @@
2222
],
2323
"contributes": {
2424
"snippets": [
25+
{
26+
"language": "javascript",
27+
"path": "./snippets/react-javascript.json"
28+
},
29+
{
30+
"language": "javascriptreact",
31+
"path": "./snippets/react-javascript.json"
32+
},
33+
{
34+
"language": "typescript",
35+
"path": "./snippets/react-typescript.json"
36+
},
2537
{
2638
"language": "typescriptreact",
2739
"path": "./snippets/react-typescript.json"
2840
},
2941
{
3042
"language": "javascriptreact",
31-
"path": "./snippets/react-javascript.json"
43+
"path": "./snippets/next-javascript.json"
44+
},
45+
{
46+
"language": "typescript",
47+
"path": "./snippets/next-typescript.json"
3248
},
3349
{
3450
"language": "typescriptreact",
3551
"path": "./snippets/next-typescript.json"
3652
},
3753
{
38-
"language": "javascriptreact",
54+
"language": "javascript",
3955
"path": "./snippets/next-javascript.json"
4056
}
4157
]

packages/vscode/snippets/next-javascript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
" };",
99
"};"
1010
],
11-
"description": "Next.js Get Server Side Props Typescript"
11+
"description": "Next.js Get Server Side Props"
1212
},
1313

1414
"nssg": {
@@ -20,7 +20,7 @@
2020
" };",
2121
"};"
2222
],
23-
"description": "Next.js Get Static Props Typescript"
23+
"description": "Next.js Get Static Props"
2424
},
2525
"ngsp": {
2626
"prefix": "ngsp",

0 commit comments

Comments
 (0)