2019-11-12 22:48:25 +03:00
|
|
|
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Launch Extension (vscode-codeql)",
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
|
|
|
"runtimeExecutable": "${execPath}",
|
|
|
|
"args": [
|
2021-01-18 22:02:01 +03:00
|
|
|
"--extensionDevelopmentPath=${workspaceRoot}/extensions/ql-vscode",
|
|
|
|
// Add a reference to a workspace to open. Eg-
|
|
|
|
// "${workspaceRoot}/../vscode-codeql-starter/vscode-codeql-starter.code-workspace"
|
2023-02-15 13:32:49 +03:00
|
|
|
// "${workspaceRoot}/../codespaces-codeql/tutorial.code-workspace"
|
2019-11-12 22:48:25 +03:00
|
|
|
],
|
|
|
|
"sourceMaps": true,
|
|
|
|
"outFiles": [
|
2020-07-21 17:09:42 +03:00
|
|
|
"${workspaceRoot}/extensions/ql-vscode/out/**/*.js",
|
2019-11-12 22:48:25 +03:00
|
|
|
],
|
2020-08-06 21:08:26 +03:00
|
|
|
"env": {
|
2020-11-18 19:34:51 +03:00
|
|
|
// change to 'true' debug the IDE or Query servers
|
|
|
|
"IDE_SERVER_JAVA_DEBUG": "false",
|
|
|
|
"QUERY_SERVER_JAVA_DEBUG": "false",
|
2021-10-25 02:39:08 +03:00
|
|
|
"CLI_SERVER_JAVA_DEBUG": "false",
|
|
|
|
// Uncomment to set the JAVA_HOME for the codeql instance to use
|
|
|
|
// "CODEQL_JAVA_HOME": "/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home"
|
2020-08-06 21:08:26 +03:00
|
|
|
}
|
2019-11-12 22:48:25 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Launch Unit Tests (vscode-codeql)",
|
2020-03-08 03:34:49 +03:00
|
|
|
"type": "node",
|
2019-11-12 22:48:25 +03:00
|
|
|
"request": "launch",
|
2022-11-22 12:37:51 +03:00
|
|
|
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
|
2020-03-08 03:34:49 +03:00
|
|
|
"showAsyncStacks": true,
|
|
|
|
"cwd": "${workspaceFolder}/extensions/ql-vscode",
|
2022-09-16 15:36:11 +03:00
|
|
|
"env": {
|
2022-11-22 12:37:51 +03:00
|
|
|
"LANG": "en-US",
|
|
|
|
"TZ": "UTC"
|
2022-09-16 15:36:11 +03:00
|
|
|
},
|
2019-11-12 22:48:25 +03:00
|
|
|
"args": [
|
2022-11-22 12:37:51 +03:00
|
|
|
"--projects",
|
2022-12-23 17:23:55 +03:00
|
|
|
"test/unit-tests"
|
2019-11-12 22:48:25 +03:00
|
|
|
],
|
|
|
|
"stopOnEntry": false,
|
|
|
|
"sourceMaps": true,
|
2020-03-08 03:34:49 +03:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen"
|
2019-11-12 22:48:25 +03:00
|
|
|
},
|
2022-11-25 15:24:40 +03:00
|
|
|
{
|
|
|
|
"name": "Launch Selected Unit Test (vscode-codeql)",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
|
|
|
|
"showAsyncStacks": true,
|
|
|
|
"cwd": "${workspaceFolder}/extensions/ql-vscode",
|
|
|
|
"env": {
|
|
|
|
"LANG": "en-US",
|
|
|
|
"TZ": "UTC"
|
|
|
|
},
|
|
|
|
"args": [
|
|
|
|
"--projects",
|
|
|
|
"test",
|
|
|
|
"-i",
|
|
|
|
"${relativeFile}",
|
|
|
|
"-t",
|
|
|
|
"${selectedText}"
|
|
|
|
],
|
|
|
|
"stopOnEntry": false,
|
|
|
|
"sourceMaps": true,
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen"
|
|
|
|
},
|
2022-09-14 15:20:54 +03:00
|
|
|
{
|
|
|
|
"name": "Launch Unit Tests - React (vscode-codeql)",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2022-10-04 15:28:49 +03:00
|
|
|
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
|
2022-09-14 15:20:54 +03:00
|
|
|
"showAsyncStacks": true,
|
|
|
|
"cwd": "${workspaceFolder}/extensions/ql-vscode",
|
2022-11-22 12:37:51 +03:00
|
|
|
"args": [
|
|
|
|
"--projects",
|
|
|
|
"src/view"
|
|
|
|
],
|
2022-09-14 15:20:54 +03:00
|
|
|
"stopOnEntry": false,
|
|
|
|
"sourceMaps": true,
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen"
|
|
|
|
},
|
2019-11-12 22:48:25 +03:00
|
|
|
{
|
|
|
|
"name": "Launch Integration Tests - No Workspace (vscode-codeql)",
|
2022-11-24 19:24:43 +03:00
|
|
|
"type": "node",
|
2019-11-12 22:48:25 +03:00
|
|
|
"request": "launch",
|
2022-11-24 19:24:43 +03:00
|
|
|
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
|
|
|
|
"showAsyncStacks": true,
|
|
|
|
"cwd": "${workspaceFolder}/extensions/ql-vscode",
|
2019-11-12 22:48:25 +03:00
|
|
|
"args": [
|
2022-11-24 19:24:43 +03:00
|
|
|
"--projects",
|
2023-01-03 13:31:38 +03:00
|
|
|
"test/vscode-tests/no-workspace"
|
2019-11-12 22:48:25 +03:00
|
|
|
],
|
|
|
|
"sourceMaps": true,
|
2022-11-24 19:24:43 +03:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen",
|
2022-11-25 12:41:22 +03:00
|
|
|
"attachSimplePort": 9223,
|
2019-11-12 22:48:25 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Launch Integration Tests - Minimal Workspace (vscode-codeql)",
|
2022-11-24 19:24:43 +03:00
|
|
|
"type": "node",
|
2019-11-12 22:48:25 +03:00
|
|
|
"request": "launch",
|
2022-11-24 19:24:43 +03:00
|
|
|
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
|
|
|
|
"showAsyncStacks": true,
|
|
|
|
"cwd": "${workspaceFolder}/extensions/ql-vscode",
|
2019-11-12 22:48:25 +03:00
|
|
|
"args": [
|
2022-11-24 19:24:43 +03:00
|
|
|
"--projects",
|
2023-01-03 13:31:38 +03:00
|
|
|
"test/vscode-tests/minimal-workspace"
|
2019-11-12 22:48:25 +03:00
|
|
|
],
|
|
|
|
"sourceMaps": true,
|
2022-11-24 19:24:43 +03:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen",
|
2022-11-25 12:41:22 +03:00
|
|
|
"attachSimplePort": 9223,
|
2020-10-26 18:34:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Launch Integration Tests - With CLI",
|
2022-11-24 19:24:43 +03:00
|
|
|
"type": "node",
|
2020-10-26 18:34:09 +03:00
|
|
|
"request": "launch",
|
2022-11-24 19:24:43 +03:00
|
|
|
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
|
|
|
|
"showAsyncStacks": true,
|
|
|
|
"cwd": "${workspaceFolder}/extensions/ql-vscode",
|
2020-10-26 18:34:09 +03:00
|
|
|
"args": [
|
2022-11-24 19:24:43 +03:00
|
|
|
"--projects",
|
2023-01-03 13:31:38 +03:00
|
|
|
"test/vscode-tests/cli-integration"
|
2020-10-26 18:34:09 +03:00
|
|
|
],
|
2021-11-04 02:04:14 +03:00
|
|
|
"env": {
|
|
|
|
// Optionally, set the version to use for the integration tests.
|
|
|
|
// Use "nightly" to use the latest nightly build.
|
|
|
|
// "CLI_VERSION": "2.7.0",
|
|
|
|
|
|
|
|
// If CLI_VERSION is set to nightly, set this to the url of the nightly build.
|
|
|
|
// "NIGHTLY_URL": "some url to grab the nightly build",
|
|
|
|
|
|
|
|
// Optionally, add a path to the codeql executable to be used during these tests.
|
|
|
|
// If not specified, one will be downloaded automatically.
|
|
|
|
// This option overrides the CLI_VERSION option.
|
|
|
|
// "CLI_PATH": "${workspaceRoot}/../semmle-code/target/intree/codeql/codeql",
|
2022-11-24 19:24:43 +03:00
|
|
|
|
|
|
|
// Uncomment the last line and modify the path to a checked out
|
|
|
|
// instance of the codeql repository so the libraries are
|
|
|
|
// available in the workspace for the tests.
|
|
|
|
// "TEST_CODEQL_PATH": "${workspaceRoot}/../codeql",
|
2021-11-04 02:04:14 +03:00
|
|
|
},
|
2020-10-26 18:34:09 +03:00
|
|
|
"sourceMaps": true,
|
2022-11-24 19:24:43 +03:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen",
|
2022-11-25 12:41:22 +03:00
|
|
|
"attachSimplePort": 9223,
|
2022-09-06 11:55:54 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Launch Storybook",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"cwd": "${workspaceFolder}/extensions/ql-vscode",
|
|
|
|
"runtimeExecutable": "npm",
|
|
|
|
"runtimeArgs": ["run-script", "storybook"]
|
2019-11-12 22:48:25 +03:00
|
|
|
}
|
|
|
|
]
|
2020-03-08 03:34:49 +03:00
|
|
|
}
|