mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
{
|
|
"version": "0.1.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch Extension",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceRoot}"
|
|
],
|
|
"stopOnEntry": false,
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceRoot}/out/src/**/*.js"
|
|
],
|
|
"preLaunchTask": "npm"
|
|
},
|
|
{
|
|
"name": "Launch Tests",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceRoot}",
|
|
"--extensionTestsPath=${workspaceRoot}/out/test"
|
|
],
|
|
"stopOnEntry": false,
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceRoot}/out/test/**/*.js"
|
|
],
|
|
"preLaunchTask": "npm"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Extension Host",
|
|
"protocol": "inspector",
|
|
"port": 5870,
|
|
"restart": true,
|
|
"outFiles": [
|
|
"${workspaceRoot}/out/src"
|
|
]
|
|
}
|
|
]
|
|
} |