2019-07-26 00:14:00 +03:00
|
|
|
{
|
2019-06-21 23:51:30 +03:00
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
2019-06-27 01:09:12 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Generate CDP API",
|
|
|
|
"program": "${workspaceFolder}/scripts/generate-cdp-api.js"
|
|
|
|
},
|
2019-06-26 21:13:46 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Generate DAP API",
|
|
|
|
"program": "${workspaceFolder}/scripts/generate-dap-api.js"
|
|
|
|
},
|
2019-10-01 01:24:31 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Debug Server",
|
2019-11-12 02:48:14 +03:00
|
|
|
"program": "${workspaceFolder}/out/src/debugServerMain.js",
|
2020-10-06 00:14:40 +03:00
|
|
|
"args": [
|
|
|
|
"4711"
|
|
|
|
]
|
2019-10-17 02:05:42 +03:00
|
|
|
// "preLaunchTask": "npm: watch"
|
2019-10-01 01:24:31 +03:00
|
|
|
},
|
2019-10-17 04:20:31 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Debug Server (Flat Session)",
|
2020-02-12 19:56:25 +03:00
|
|
|
"trace": true,
|
2019-11-12 02:48:14 +03:00
|
|
|
"program": "${workspaceFolder}/out/src/flatSessionLauncher.js",
|
2020-10-06 00:14:40 +03:00
|
|
|
"args": [
|
|
|
|
"4712"
|
|
|
|
],
|
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**/*.js"
|
|
|
|
]
|
|
|
|
// "preLaunchTask": "npm: watch"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Debug Server (VS Server)",
|
|
|
|
"trace": true,
|
|
|
|
"program": "${workspaceFolder}/out/src/vsDebugServer.js",
|
|
|
|
"args": [
|
|
|
|
"4712"
|
|
|
|
],
|
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**/*.js"
|
|
|
|
]
|
2019-10-21 21:15:56 +03:00
|
|
|
// "preLaunchTask": "npm: watch"
|
2019-10-17 04:20:31 +03:00
|
|
|
},
|
2019-06-21 23:51:30 +03:00
|
|
|
{
|
|
|
|
"name": "Extension",
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2020-10-06 00:14:40 +03:00
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
2019-06-21 23:51:30 +03:00
|
|
|
"args": [
|
2019-11-08 21:20:48 +03:00
|
|
|
"--enable-proposed-api=ms-vscode.js-debug",
|
2020-09-28 20:39:40 +03:00
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/out"
|
2020-04-23 01:03:21 +03:00
|
|
|
],
|
2019-06-21 23:51:30 +03:00
|
|
|
"outFiles": [
|
2020-04-23 01:03:21 +03:00
|
|
|
"${workspaceFolder}/out/**/*.js",
|
2020-09-28 20:39:40 +03:00
|
|
|
"${workspaceFolder}/../vscode/extensions/debug-auto-launch/out/**/*.js"
|
|
|
|
]
|
2019-10-17 02:05:42 +03:00
|
|
|
// "preLaunchTask": "npm: watch"
|
2019-08-29 02:57:54 +03:00
|
|
|
},
|
fix: get the package build target working (#73)
* fix: get the package build target working
These changes get both the parcel bundling and vsix build targets working together.
A few changes to note:
- Separated the packaging phase to use the dist folder instead of out. This helps keep packaging completely separate from the normal debug/dev builds
- As a result of the above change, the vsce package command now runs inside of the dist folder, so we need to copy any other needed files there as well (atm that's package.json, package.nls.json, and LICENSE)
- Changed the gulpfile to use the command-line version of vsce instead of the js lib. I found the js version very hard to debug because gulp tends to swallow console.log statements, so the build would fail with zero diagnostic output. Using the command line api solves that problem and makes builds easier to debug.
- Moved the tsconfig out of the src dir and into the root. I did this mainly because we are referencing the package.json in some parts of the code now, and if we use require(''), parcel can't resolve it, because we've gone one level deeper (from src to out/src). The solution to this is to use typescript import to import package.json. On compile, ts knows to change the relative path based on the output dir. But in order to let ts actually do this, we have to change the root of the ts project so that package.json is inside of it.
* chore: switch from parcel to webpack
Parcel seems to have issues with the vscode dependency on Mac/Linux?
* fix: always use forward slashes in gulp src/dest
gulp seems to be able to handle backslashes on windows, but is not always consistent in behavior (e.g. in this case, on windows gulp would copy the resources directory fully recursively, whereas on mac/linux it would only copy the files, not preserving the directory structure)
* fix: don't stub __dirname, copy shell scripts
2019-11-08 20:12:02 +03:00
|
|
|
{
|
|
|
|
"name": "Extension (packaged)",
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2020-10-06 00:14:40 +03:00
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
fix: get the package build target working (#73)
* fix: get the package build target working
These changes get both the parcel bundling and vsix build targets working together.
A few changes to note:
- Separated the packaging phase to use the dist folder instead of out. This helps keep packaging completely separate from the normal debug/dev builds
- As a result of the above change, the vsce package command now runs inside of the dist folder, so we need to copy any other needed files there as well (atm that's package.json, package.nls.json, and LICENSE)
- Changed the gulpfile to use the command-line version of vsce instead of the js lib. I found the js version very hard to debug because gulp tends to swallow console.log statements, so the build would fail with zero diagnostic output. Using the command line api solves that problem and makes builds easier to debug.
- Moved the tsconfig out of the src dir and into the root. I did this mainly because we are referencing the package.json in some parts of the code now, and if we use require(''), parcel can't resolve it, because we've gone one level deeper (from src to out/src). The solution to this is to use typescript import to import package.json. On compile, ts knows to change the relative path based on the output dir. But in order to let ts actually do this, we have to change the root of the ts project so that package.json is inside of it.
* chore: switch from parcel to webpack
Parcel seems to have issues with the vscode dependency on Mac/Linux?
* fix: always use forward slashes in gulp src/dest
gulp seems to be able to handle backslashes on windows, but is not always consistent in behavior (e.g. in this case, on windows gulp would copy the resources directory fully recursively, whereas on mac/linux it would only copy the files, not preserving the directory structure)
* fix: don't stub __dirname, copy shell scripts
2019-11-08 20:12:02 +03:00
|
|
|
"args": [
|
2019-11-08 21:20:48 +03:00
|
|
|
"--enable-proposed-api=ms-vscode.js-debug",
|
fix: get the package build target working (#73)
* fix: get the package build target working
These changes get both the parcel bundling and vsix build targets working together.
A few changes to note:
- Separated the packaging phase to use the dist folder instead of out. This helps keep packaging completely separate from the normal debug/dev builds
- As a result of the above change, the vsce package command now runs inside of the dist folder, so we need to copy any other needed files there as well (atm that's package.json, package.nls.json, and LICENSE)
- Changed the gulpfile to use the command-line version of vsce instead of the js lib. I found the js version very hard to debug because gulp tends to swallow console.log statements, so the build would fail with zero diagnostic output. Using the command line api solves that problem and makes builds easier to debug.
- Moved the tsconfig out of the src dir and into the root. I did this mainly because we are referencing the package.json in some parts of the code now, and if we use require(''), parcel can't resolve it, because we've gone one level deeper (from src to out/src). The solution to this is to use typescript import to import package.json. On compile, ts knows to change the relative path based on the output dir. But in order to let ts actually do this, we have to change the root of the ts project so that package.json is inside of it.
* chore: switch from parcel to webpack
Parcel seems to have issues with the vscode dependency on Mac/Linux?
* fix: always use forward slashes in gulp src/dest
gulp seems to be able to handle backslashes on windows, but is not always consistent in behavior (e.g. in this case, on windows gulp would copy the resources directory fully recursively, whereas on mac/linux it would only copy the files, not preserving the directory structure)
* fix: don't stub __dirname, copy shell scripts
2019-11-08 20:12:02 +03:00
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/dist"
|
|
|
|
],
|
2020-10-06 00:14:40 +03:00
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/dist/**/*.js"
|
|
|
|
]
|
fix: get the package build target working (#73)
* fix: get the package build target working
These changes get both the parcel bundling and vsix build targets working together.
A few changes to note:
- Separated the packaging phase to use the dist folder instead of out. This helps keep packaging completely separate from the normal debug/dev builds
- As a result of the above change, the vsce package command now runs inside of the dist folder, so we need to copy any other needed files there as well (atm that's package.json, package.nls.json, and LICENSE)
- Changed the gulpfile to use the command-line version of vsce instead of the js lib. I found the js version very hard to debug because gulp tends to swallow console.log statements, so the build would fail with zero diagnostic output. Using the command line api solves that problem and makes builds easier to debug.
- Moved the tsconfig out of the src dir and into the root. I did this mainly because we are referencing the package.json in some parts of the code now, and if we use require(''), parcel can't resolve it, because we've gone one level deeper (from src to out/src). The solution to this is to use typescript import to import package.json. On compile, ts knows to change the relative path based on the output dir. But in order to let ts actually do this, we have to change the root of the ts project so that package.json is inside of it.
* chore: switch from parcel to webpack
Parcel seems to have issues with the vscode dependency on Mac/Linux?
* fix: always use forward slashes in gulp src/dest
gulp seems to be able to handle backslashes on windows, but is not always consistent in behavior (e.g. in this case, on windows gulp would copy the resources directory fully recursively, whereas on mac/linux it would only copy the files, not preserving the directory structure)
* fix: don't stub __dirname, copy shell scripts
2019-11-08 20:12:02 +03:00
|
|
|
// "preLaunchTask": "npm: watch"
|
|
|
|
},
|
2020-08-24 21:32:38 +03:00
|
|
|
{
|
|
|
|
"name": "Extension and Auto Launch",
|
|
|
|
"type": "pwa-extensionHost",
|
|
|
|
"request": "launch",
|
2020-10-06 00:14:40 +03:00
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
2020-08-24 21:32:38 +03:00
|
|
|
"args": [
|
|
|
|
"--enable-proposed-api=ms-vscode.js-debug",
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/../vscode/extensions/debug-auto-launch",
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/out"
|
|
|
|
],
|
|
|
|
"resolveSourceMapLocations": [
|
|
|
|
"${workspaceFolder}/**",
|
|
|
|
"${workspaceFolder}/../vscode/extensions/debug-auto-launch/out/**",
|
|
|
|
"!**/node_modules/**"
|
|
|
|
],
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js",
|
2020-09-28 20:39:40 +03:00
|
|
|
"${workspaceFolder}/../vscode-js-debug-companion/out/**/*.js"
|
|
|
|
]
|
2020-08-24 21:32:38 +03:00
|
|
|
},
|
2020-02-21 01:20:51 +03:00
|
|
|
{
|
|
|
|
"name": "Extension and Companion",
|
|
|
|
"type": "pwa-extensionHost",
|
|
|
|
"request": "launch",
|
2020-10-06 00:14:40 +03:00
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
2020-02-21 01:20:51 +03:00
|
|
|
"args": [
|
|
|
|
"--enable-proposed-api=ms-vscode.js-debug",
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/../vscode-js-debug-companion",
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/out"
|
|
|
|
],
|
2020-04-07 22:58:32 +03:00
|
|
|
"env": {
|
|
|
|
"JS_DEBUG_USE_COMPANION": "1"
|
|
|
|
},
|
2020-02-21 01:20:51 +03:00
|
|
|
"trace": true,
|
|
|
|
"resolveSourceMapLocations": [
|
|
|
|
"${workspaceFolder}/**",
|
|
|
|
"${workspaceFolder}/../vscode-js-debug-companion/**",
|
|
|
|
"!**/node_modules/**"
|
|
|
|
],
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js",
|
2020-09-28 20:39:40 +03:00
|
|
|
"${workspaceFolder}/../vscode-js-debug-companion/out/**/*.js"
|
|
|
|
]
|
2019-06-21 23:51:30 +03:00
|
|
|
},
|
2020-09-28 20:39:40 +03:00
|
|
|
{
|
|
|
|
"name": "Run Golden Tests",
|
|
|
|
"type": "pwa-extensionHost",
|
2020-04-08 01:11:26 +03:00
|
|
|
"request": "launch",
|
2020-10-06 00:14:40 +03:00
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
2020-09-28 20:39:40 +03:00
|
|
|
"args": [
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/out",
|
|
|
|
"--extensionTestsPath=${workspaceFolder}/out/src/test/testRunner"
|
2019-06-21 23:51:30 +03:00
|
|
|
],
|
2020-10-06 00:14:40 +03:00
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
]
|
2020-09-28 20:39:40 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Run Unit Tests",
|
|
|
|
"type": "pwa-node",
|
|
|
|
"request": "launch",
|
2020-10-06 00:14:40 +03:00
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
2020-09-28 20:39:40 +03:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/mocha",
|
2020-10-06 00:14:40 +03:00
|
|
|
"runtimeArgs": [
|
|
|
|
"--config",
|
|
|
|
".mocharc.unit.js"
|
|
|
|
],
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
]
|
fix: get the package build target working (#73)
* fix: get the package build target working
These changes get both the parcel bundling and vsix build targets working together.
A few changes to note:
- Separated the packaging phase to use the dist folder instead of out. This helps keep packaging completely separate from the normal debug/dev builds
- As a result of the above change, the vsce package command now runs inside of the dist folder, so we need to copy any other needed files there as well (atm that's package.json, package.nls.json, and LICENSE)
- Changed the gulpfile to use the command-line version of vsce instead of the js lib. I found the js version very hard to debug because gulp tends to swallow console.log statements, so the build would fail with zero diagnostic output. Using the command line api solves that problem and makes builds easier to debug.
- Moved the tsconfig out of the src dir and into the root. I did this mainly because we are referencing the package.json in some parts of the code now, and if we use require(''), parcel can't resolve it, because we've gone one level deeper (from src to out/src). The solution to this is to use typescript import to import package.json. On compile, ts knows to change the relative path based on the output dir. But in order to let ts actually do this, we have to change the root of the ts project so that package.json is inside of it.
* chore: switch from parcel to webpack
Parcel seems to have issues with the vscode dependency on Mac/Linux?
* fix: always use forward slashes in gulp src/dest
gulp seems to be able to handle backslashes on windows, but is not always consistent in behavior (e.g. in this case, on windows gulp would copy the resources directory fully recursively, whereas on mac/linux it would only copy the files, not preserving the directory structure)
* fix: don't stub __dirname, copy shell scripts
2019-11-08 20:12:02 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug Gulp",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
|
2020-10-06 00:14:40 +03:00
|
|
|
"args": [
|
|
|
|
"move-bundle-files"
|
|
|
|
]
|
2019-06-21 23:51:30 +03:00
|
|
|
}
|
|
|
|
]
|
2020-10-06 00:14:40 +03:00
|
|
|
}
|