refactor: convert js to ts

This commit is contained in:
Levi Yan
2024-07-02 12:15:39 +08:00
parent 4afa0ccccc
commit fd9fe52529
12 changed files with 207 additions and 234 deletions

6
.vscode/launch.json vendored
View File

@@ -6,12 +6,9 @@
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"preLaunchTask": "npm: build",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"sourceMaps": true,
"stopOnEntry": false
},
{
"name": "Launch Tests",
@@ -23,7 +20,6 @@
"--extensionTestsPath=${workspaceRoot}/test"
],
"preLaunchTask": "npm: build",
"stopOnEntry": false
}
]
}

17
.vscode/tasks.json vendored
View File

@@ -15,6 +15,21 @@
"problemMatcher": [],
"label": "npm: format",
"detail": "prettier --single-quote --print-width 88 --write \"src/**/*.js\""
}
},
{
"type": "npm",
"script": "watch",
"problemMatcher": "$ts-webpack-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": {
"kind": "build",
"isDefault": true
}
},
]
}