mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-27 04:35:25 +00:00
488 lines
12 KiB
JSON
488 lines
12 KiB
JSON
{
|
|
"version": "0.1.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Gulp Build",
|
|
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
|
|
"stopOnEntry": true,
|
|
"args": [
|
|
"hygiene"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"restart": true,
|
|
"name": "Attach to Extension Host",
|
|
"timeout": 30000,
|
|
"port": 5870,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js",
|
|
"${workspaceFolder}/extensions/*/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "pwa-chrome",
|
|
"request": "attach",
|
|
"name": "Attach to Shared Process",
|
|
"timeout": 30000,
|
|
"port": 9222,
|
|
"urlFilter": "*sharedProcess.html*",
|
|
"presentation": {
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Search Process",
|
|
"port": 5876,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"hidden": true,
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to CLI Process",
|
|
"port": 5874,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Main Process",
|
|
"timeout": 30000,
|
|
"port": 5875,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"hidden": true,
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "VS Code Emmet Tests",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/extensions/emmet/test-fixtures",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/emmet",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/emmet/out/test"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 6
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "VS Code Git Tests",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"/tmp/my4g9l",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/git",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/git/out/test"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/extensions/git/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 6
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "VS Code API Tests (single folder)",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
// "${workspaceFolder}", // Uncomment for running out of sources.
|
|
"${workspaceFolder}/extensions/vscode-api-tests/testWorkspace",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/singlefolder-tests"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "VS Code API Tests (workspace)",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/extensions/vscode-api-tests/testworkspace.code-workspace",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/workspace-tests"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 4
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "VS Code Tokenizer Tests",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/extensions/vscode-colorize-tests/test",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-colorize-tests",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-colorize-tests/out"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 5
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "VS Code Notebook Tests",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/extensions/vscode-notebook-tests/test",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-notebook-tests",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-notebook-tests/out"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 6
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "VS Code Custom Editor Tests",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/extensions/vscode-custom-editor-tests/test-workspace",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-custom-editor-tests",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-custom-editor-tests/out/test"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 6
|
|
}
|
|
},
|
|
{
|
|
"type": "pwa-chrome",
|
|
"request": "attach",
|
|
"name": "Attach to VS Code",
|
|
"browserAttachLocation": "workspace",
|
|
"port": 9222
|
|
},
|
|
{
|
|
"type": "pwa-chrome",
|
|
"request": "launch",
|
|
"name": "Launch VS Code",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
|
|
},
|
|
"osx": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
|
},
|
|
"linux": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
|
},
|
|
"port": 9222,
|
|
"timeout": 20000,
|
|
"env": {
|
|
"VSCODE_EXTHOST_WILL_SEND_SOCKET": null,
|
|
"VSCODE_SKIP_PRELAUNCH": "1"
|
|
},
|
|
"cleanUp": "wholeBrowser",
|
|
"urlFilter": "*workbench.html*",
|
|
"runtimeArgs": [
|
|
"--inspect=5875",
|
|
"--no-cached-data",
|
|
],
|
|
"webRoot": "${workspaceFolder}",
|
|
"cascadeTerminateToConfigurations": [
|
|
"Attach to Extension Host"
|
|
],
|
|
"userDataDir": false,
|
|
"pauseForSourceMap": false,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"browserLaunchLocation": "workspace",
|
|
"preLaunchTask": "Ensure Prelaunch Dependencies",
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "VS Code (Web)",
|
|
"program": "${workspaceFolder}/resources/web/code-web.js",
|
|
"presentation": {
|
|
"group": "0_vscode",
|
|
"order": 2
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Main Process",
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat",
|
|
},
|
|
"runtimeArgs": [
|
|
"--no-cached-data"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "1_vscode",
|
|
"order": 1
|
|
}
|
|
},
|
|
{
|
|
"type": "pwa-chrome",
|
|
"request": "launch",
|
|
"outFiles": [],
|
|
"perScriptSourcemaps": "yes",
|
|
"name": "VS Code (Web, Chrome)",
|
|
"url": "http://localhost:8080",
|
|
"preLaunchTask": "Run web",
|
|
"presentation": {
|
|
"group": "0_vscode",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
"type": "pwa-msedge",
|
|
"request": "launch",
|
|
"outFiles": [],
|
|
"perScriptSourcemaps": "yes",
|
|
"name": "VS Code (Web, Edge)",
|
|
"url": "http://localhost:8080",
|
|
"pauseForSourceMap": false,
|
|
"preLaunchTask": "Run web",
|
|
"presentation": {
|
|
"group": "0_vscode",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Git Unit Tests",
|
|
"program": "${workspaceFolder}/extensions/git/node_modules/mocha/bin/_mocha",
|
|
"stopOnEntry": false,
|
|
"cwd": "${workspaceFolder}/extensions/git",
|
|
"outFiles": [
|
|
"${workspaceFolder}/extensions/git/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 10
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "HTML Server Unit Tests",
|
|
"program": "${workspaceFolder}/extensions/html-language-features/server/test/index.js",
|
|
"stopOnEntry": false,
|
|
"cwd": "${workspaceFolder}/extensions/html-language-features/server",
|
|
"outFiles": [
|
|
"${workspaceFolder}/extensions/html-language-features/server/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 10
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "CSS Server Unit Tests",
|
|
"program": "${workspaceFolder}/extensions/css-language-features/server/test/index.js",
|
|
"stopOnEntry": false,
|
|
"cwd": "${workspaceFolder}/extensions/css-language-features/server",
|
|
"outFiles": [
|
|
"${workspaceFolder}/extensions/css-language-features/server/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 10
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "Markdown Extension Tests",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/extensions/markdown-language-features/test-workspace",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/markdown-language-features",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/markdown-language-features/out/test"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/extensions/markdown-language-features/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 7
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "TypeScript Extension Tests",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/extensions/typescript-language-features/test-workspace",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/typescript-language-features",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/typescript-language-features/out/test"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceFolder}/extensions/typescript-language-features/out/**/*.js"
|
|
],
|
|
"presentation": {
|
|
"group": "5_tests",
|
|
"order": 8
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Run Unit Tests",
|
|
"program": "${workspaceFolder}/test/unit/electron/index.js",
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
|
|
},
|
|
"linux": {
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss"
|
|
},
|
|
"outputCapture": "std",
|
|
"args": [
|
|
"--remote-debugging-port=9222"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
],
|
|
"env": {
|
|
"MOCHA_COLORS": "true"
|
|
},
|
|
"presentation": {
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Launch Smoke Test",
|
|
"program": "${workspaceFolder}/test/smoke/out/main.js",
|
|
"cwd": "${workspaceFolder}/test/smoke",
|
|
"timeout": 240000,
|
|
"port": 9999,
|
|
"args": [
|
|
"-l",
|
|
"${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron"
|
|
],
|
|
"outFiles": [
|
|
"${cwd}/out/**/*.js"
|
|
],
|
|
"env": {
|
|
"NODE_ENV": "development",
|
|
"VSCODE_DEV": "1",
|
|
"VSCODE_CLI": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "Launch Built-in Extension",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceRoot}/extensions/debug-auto-launch"
|
|
]
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "VS Code",
|
|
"stopAll": true,
|
|
"configurations": [
|
|
"Launch VS Code",
|
|
"Attach to Main Process",
|
|
"Attach to Extension Host",
|
|
"Attach to Shared Process",
|
|
],
|
|
"preLaunchTask": "Ensure Prelaunch Dependencies",
|
|
"presentation": {
|
|
"group": "0_vscode",
|
|
"order": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "Search and Renderer processes",
|
|
"configurations": [
|
|
"Launch VS Code",
|
|
"Attach to Search Process"
|
|
],
|
|
"presentation": {
|
|
"group": "1_vscode",
|
|
"order": 4
|
|
}
|
|
},
|
|
{
|
|
"name": "Renderer and Extension Host processes",
|
|
"configurations": [
|
|
"Launch VS Code",
|
|
"Attach to Extension Host"
|
|
],
|
|
"presentation": {
|
|
"group": "1_vscode",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Unit Tests",
|
|
"configurations": [
|
|
"Attach to VS Code",
|
|
"Run Unit Tests"
|
|
],
|
|
"presentation": {
|
|
"group": "1_vscode",
|
|
"order": 2
|
|
}
|
|
}
|
|
]
|
|
}
|