Skip to content

Commit 7d037ed

Browse files
committed
fix const template literals
1 parent bebf882 commit 7d037ed

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Fixed for any bug fixes.
99
Security to invite users to upgrade in case of vulnerabilities.
1010
-->
1111

12+
## 1.8.1 - 2023/03/28
13+
14+
## Fixed
15+
16+
- constant template literals expression variable
17+
1218
## 1.8.0 - 2023/03/28
1319

1420
## Added

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "const-props-snippets",
33
"description": "VS Code Const & Props snippets for JS and TS",
4-
"version": "1.8.0",
4+
"version": "1.8.1",
55
"displayName": "Const & Props Snippets",
66
"publisher": "deinsoftware",
77
"icon": "images/light-icon.png",

snippets/var-js.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"constantTemplateLiterals": {
1313
"prefix": "ctl",
14-
"body": "const ${1:name} = `$2\\${$3:expression\\}$4`$0",
14+
"body": "const ${1:name} = `$2\\${${3:expression}\\}$4`$0",
1515
"description": "Constant Template Literals"
1616
},
1717
"constantNumber": {

snippets/var-ts.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"constantTemplateLiterals": {
2323
"prefix": "ctl",
24-
"body": "const ${1:name}: string = `$2\\${$3:expression\\}$4`$0",
24+
"body": "const ${1:name}: string = `$2\\${${3:expression}\\}$4`$0",
2525
"description": "Constant Template Literals"
2626
},
2727
"constantNumber": {

0 commit comments

Comments
 (0)