mirror of
https://github.com/microsoft/pyright.git
synced 2024-08-17 03:40:44 +03:00
* allow tests to be run from repo root * remove comments * reformated using json default formatter * delete ones in server folder. no longer needed. from now on, open vscode from root folder to run tests
103 lines
3.4 KiB
JSON
103 lines
3.4 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Pyright CLI",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"program": "${workspaceRoot}/index.debug.js",
|
|
"protocol": "inspector",
|
|
"cwd": "${workspaceRoot}",
|
|
"preLaunchTask": "npm: build:serverDebug",
|
|
"args": [
|
|
"-p",
|
|
"${workspaceRoot}/../brain",
|
|
"--stats"
|
|
],
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
"outFiles": [
|
|
"${workspaceRoot}/client/server/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"name": "Pyright Tests",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"args": [
|
|
"--config",
|
|
"${workspaceRoot}/server/jest.config.js",
|
|
"-runInBand"
|
|
],
|
|
"cwd": "${workspaceRoot}/server",
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"disableOptimisticBPs": true,
|
|
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest"
|
|
},
|
|
{
|
|
"name": "Pyright Language Client",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${workspaceRoot}/client/out/src/extension.js",
|
|
"preLaunchTask": "npm: build:clientServerDebug",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceFolder}/client"
|
|
],
|
|
"stopOnEntry": false,
|
|
"smartStep": true,
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceRoot}/server/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"name": "Pyright Language Server",
|
|
"type": "node",
|
|
"request": "attach",
|
|
"protocol": "inspector",
|
|
"port": 6600,
|
|
"smartStep": true,
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceRoot}/server/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"name": "Pyright jest current file",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"args": [
|
|
"${fileBasenameNoExtension}",
|
|
"--config",
|
|
"${workspaceRoot}/server/jest.config.js"
|
|
],
|
|
"cwd": "${workspaceRoot}/server",
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"disableOptimisticBPs": true,
|
|
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest",
|
|
"windows": {
|
|
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest"
|
|
}
|
|
},
|
|
{
|
|
"name": "Pyright fourslash current file",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"args": [
|
|
"fourSlashRunner.test.ts",
|
|
"-t ${fileBasenameNoExtension}",
|
|
"--config",
|
|
"${workspaceRoot}/server/jest.config.js"
|
|
],
|
|
"cwd": "${workspaceRoot}/server",
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"disableOptimisticBPs": true,
|
|
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest",
|
|
"windows": {
|
|
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest"
|
|
}
|
|
}
|
|
]
|
|
} |