Skip to content

Commit

Permalink
fix: consolidate options snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejcodes committed Aug 24, 2023
1 parent 1fa9a17 commit 3da1939
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions packages/minze-vscode/snippets/common.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,15 @@
"options": {
"scope": "javascript,typescript",
"prefix": "_minze:options",
"body": ["options = {$0}"],
"body": [
"options = {",
"\tcssReset: ${1:true},",
"\texposeAttrs: { exportparts: ${2:false}, rendered: ${3:false} }",
"}"
],
"description": "options"
},

"option:cssreset": {
"scope": "javascript,typescript",
"prefix": "_minze:option:cssreset",
"body": ["options = { cssReset: ${0:true} }"],
"description": "cssReset option"
},

"option:exportparts": {
"scope": "javascript,typescript",
"prefix": "_minze:option:exportparts",
"body": ["options = { exposeAttrs: { exportparts: ${0:true} } }"],
"description": "exportparts option"
},

"option:rendered": {
"scope": "javascript,typescript",
"prefix": "_minze:option:rendered",
"body": ["options = { exposeAttrs: { rendered: ${0:true} } }"],
"description": "rendered option"
},

"expression": {
"scope": "html,css",
"prefix": "_minze:expression",
Expand Down

0 comments on commit 3da1939

Please sign in to comment.