Refactor extension, make it easy to maintain and unique to register

This commit is contained in:
c5soft committed 2022-01-27 15:54:49 +08:00
1 parent 472f5efea0
commit b23e69cfbb
3 files changed
+54 -57

No files matched your search

+8 -7
View File
@@ -17,19 +17,19 @@
"Other"
],
"activationEvents": [
"onCommand:extension.htmlToRsx",
"onCommand:extension.htmlToComponent"
"onCommand:extension.htmlToDioxusRsx",
"onCommand:extension.htmlToDioxusComponent"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "extension.htmlToRsx",
"title": "Convert HTML to RSX"
"command": "extension.htmlToDioxusRsx",
"title": "Dioxus: Convert HTML to RSX"
},
{
"command": "extension.htmlToComponent",
"title": "Convert HTML to Dioxus Component"
"command": "extension.htmlToDioxusComponent",
"title": "Dioxus: Convert HTML to Component"
}
]
},
@@ -37,7 +37,8 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./"
"watch": "tsc -watch -p ./",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^12.12.0",