Automatically compile VSCode extension before debugging it
This commit is contained in:
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Extension",
|
"name": "Extension",
|
||||||
@@ -6,7 +7,8 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"args": [
|
"args": [
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}/vscode-ext"
|
"--extensionDevelopmentPath=${workspaceFolder}/vscode-ext"
|
||||||
]
|
],
|
||||||
|
"preLaunchTask": "Compile VSCode extension"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
15
.vscode/tasks.json
vendored
Normal file
15
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Compile VSCode extension",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "npm",
|
||||||
|
"args": ["run", "compile"],
|
||||||
|
"problemMatcher": "$tsc",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/vscode-ext"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user