Using esbuild.mjs for configuration
Added example directory with a typescript program and open it by default in the extension host - its nice to have an isolated environment where the extension can be played with. You can always open an actual project folder if you want to
This commit is contained in:
parent
915199ac6a
commit
0d1963628c
4 changed files with 8 additions and 1 deletions
1
.vscode/launch.json
vendored
1
.vscode/launch.json
vendored
|
|
@ -34,6 +34,7 @@
|
|||
"request": "launch",
|
||||
"cwd": "${workspaceFolder}/extension",
|
||||
"args": [
|
||||
"${workspaceFolder}/extension/manual-testing-sandbox",
|
||||
"--extensionDevelopmentPath=${workspaceFolder}/extension",
|
||||
],
|
||||
"outFiles": [
|
||||
|
|
|
|||
3
extension/manual-testing-sandbox/example.ts
Normal file
3
extension/manual-testing-sandbox/example.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function mergeSortAlgorithm() {
|
||||
// TODO: implement
|
||||
}
|
||||
3
extension/manual-testing-sandbox/readme.md
Normal file
3
extension/manual-testing-sandbox/readme.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
The sole purpose of this folder is to open it when debugging the extension.
|
||||
It is not used by the extension itself.
|
||||
You can add more files that can be useful when manually testing the extension.
|
||||
|
|
@ -183,8 +183,8 @@
|
|||
]
|
||||
},
|
||||
"scripts": {
|
||||
"esbuild-base": "rm -rf ./out && node esbuild.mjs",
|
||||
"vscode:prepublish": "npm run esbuild-base -- --minify",
|
||||
"esbuild-base": "rm -rf ./out && esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
|
||||
"esbuild": "npm run esbuild-base -- --sourcemap",
|
||||
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
|
||||
"tsc": "tsc -p ./",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue