2022-06-14 14:37:10 +08:00
|
|
|
{
|
|
|
|
"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",
|
2024-04-30 20:57:13 +08:00
|
|
|
"timeout": 0,
|
2022-06-14 14:37:10 +08:00
|
|
|
"port": 5870,
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js",
|
|
|
|
"${workspaceFolder}/extensions/*/out/**/*.js"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "node",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "attach",
|
2024-04-30 20:57:13 +08:00
|
|
|
"restart": true,
|
2022-06-14 14:37:10 +08:00
|
|
|
"name": "Attach to Shared Process",
|
2024-04-30 20:57:13 +08:00
|
|
|
"timeout": 0,
|
|
|
|
"port": 5879,
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
]
|
2022-06-14 14:37:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "attach",
|
|
|
|
"name": "Attach to Search Process",
|
|
|
|
"port": 5876,
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "attach",
|
|
|
|
"name": "Attach to Pty Host Process",
|
|
|
|
"port": 5877,
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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,
|
2024-04-30 20:57:13 +08:00
|
|
|
"continueOnAttach": true,
|
2022-06-14 14:37:10 +08:00
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"hidden": true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Emmet Tests",
|
2022-06-14 14:37:10 +08:00
|
|
|
"runtimeExecutable": "${execPath}",
|
|
|
|
"args": [
|
|
|
|
"${workspaceFolder}/extensions/emmet/test-workspace",
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/emmet",
|
|
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/emmet/out/test"
|
|
|
|
],
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "5_tests",
|
|
|
|
"order": 6
|
|
|
|
}
|
|
|
|
},
|
2024-04-30 20:57:13 +08:00
|
|
|
{
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Configuration Editing Tests",
|
2024-04-30 20:57:13 +08:00
|
|
|
"runtimeExecutable": "${execPath}",
|
|
|
|
"args": [
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/configuration-editing",
|
|
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/configuration-editing/out/test"
|
|
|
|
],
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "5_tests",
|
|
|
|
"order": 6
|
|
|
|
}
|
|
|
|
},
|
2022-06-14 14:37:10 +08:00
|
|
|
{
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Git Tests",
|
2022-06-14 14:37:10 +08:00
|
|
|
"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",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Github Tests",
|
2022-06-14 14:37:10 +08:00
|
|
|
"runtimeExecutable": "${execPath}",
|
|
|
|
"args": [
|
|
|
|
"${workspaceFolder}/extensions/github/testWorkspace",
|
|
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/github",
|
|
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/github/out/test"
|
|
|
|
],
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/extensions/github/out/**/*.js"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "5_tests",
|
|
|
|
"order": 6
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code API Tests (single folder)",
|
2022-06-14 14:37:10 +08:00
|
|
|
"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",
|
|
|
|
"--disable-extensions"
|
|
|
|
],
|
|
|
|
"outFiles": [
|
2024-04-30 20:57:13 +08:00
|
|
|
"${workspaceFolder}/extensions/vscode-api-tests/out/**/*.js"
|
2022-06-14 14:37:10 +08:00
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "5_tests",
|
|
|
|
"order": 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code API Tests (workspace)",
|
2022-06-14 14:37:10 +08:00
|
|
|
"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": [
|
2024-04-30 20:57:13 +08:00
|
|
|
"${workspaceFolder}/extensions/vscode-api-tests/out/**/*.js"
|
2022-06-14 14:37:10 +08:00
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "5_tests",
|
|
|
|
"order": 4
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "extensionHost",
|
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Tokenizer Tests",
|
2022-06-14 14:37:10 +08:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "chrome",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "attach",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Attach to Kylin Code",
|
2022-06-14 14:37:10 +08:00
|
|
|
"browserAttachLocation": "workspace",
|
|
|
|
"port": 9222,
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"resolveSourceMapLocations": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"perScriptSourcemaps": "yes"
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "chrome",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Launch Kylin Code Internal",
|
2022-06-14 14:37:10 +08:00
|
|
|
"windows": {
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
|
|
|
|
},
|
|
|
|
"osx": {
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
|
|
|
},
|
|
|
|
"linux": {
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
|
|
|
},
|
|
|
|
"port": 9222,
|
2024-04-30 20:57:13 +08:00
|
|
|
"timeout": 0,
|
2022-06-14 14:37:10 +08:00
|
|
|
"env": {
|
|
|
|
"VSCODE_EXTHOST_WILL_SEND_SOCKET": null,
|
|
|
|
"VSCODE_SKIP_PRELAUNCH": "1"
|
|
|
|
},
|
|
|
|
"cleanUp": "wholeBrowser",
|
|
|
|
"runtimeArgs": [
|
2024-04-30 20:57:13 +08:00
|
|
|
"--inspect-brk=5875",
|
2022-06-14 14:37:10 +08:00
|
|
|
"--no-cached-data",
|
2024-04-30 20:57:13 +08:00
|
|
|
"--crash-reporter-directory=${workspaceFolder}/.profile-oss/crashes",
|
2022-06-14 14:37:10 +08:00
|
|
|
// for general runtime freezes: https://github.com/microsoft/vscode/issues/127861#issuecomment-904144910
|
|
|
|
"--disable-features=CalculateNativeWinOcclusion",
|
2024-04-30 20:57:13 +08:00
|
|
|
"--disable-extension=vscode.vscode-api-tests"
|
2022-06-14 14:37:10 +08:00
|
|
|
],
|
2024-04-30 20:57:13 +08:00
|
|
|
"userDataDir": "${userHome}/.vscode-oss-dev",
|
2022-06-14 14:37:10 +08:00
|
|
|
"webRoot": "${workspaceFolder}",
|
|
|
|
"cascadeTerminateToConfigurations": [
|
|
|
|
"Attach to Extension Host"
|
|
|
|
],
|
|
|
|
"pauseForSourceMap": false,
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"browserLaunchLocation": "workspace",
|
|
|
|
"presentation": {
|
|
|
|
"hidden": true,
|
2024-04-30 20:57:13 +08:00
|
|
|
},
|
|
|
|
// This is read by the vscode-diagnostic-tools extension
|
|
|
|
"vscode-diagnostic-tools.debuggerScripts": [
|
|
|
|
"${workspaceFolder}/scripts/hot-reload-injected-script.js"
|
|
|
|
]
|
2022-06-14 14:37:10 +08:00
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "node",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "launch",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Server (Web)",
|
2022-06-14 14:37:10 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code-server.sh",
|
|
|
|
"windows": {
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code-server.bat",
|
|
|
|
},
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "0_vscode",
|
|
|
|
"order": 2
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "node",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "launch",
|
|
|
|
"name": "Main Process",
|
|
|
|
"attachSimplePort": 5875,
|
2024-04-30 20:57:13 +08:00
|
|
|
"enableContentValidation": false,
|
2022-06-14 14:37:10 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh",
|
|
|
|
"windows": {
|
|
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat",
|
|
|
|
},
|
|
|
|
"runtimeArgs": [
|
|
|
|
"--inspect-brk=5875",
|
|
|
|
"--no-cached-data",
|
|
|
|
],
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "1_vscode",
|
|
|
|
"order": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "chrome",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "launch",
|
|
|
|
"outFiles": [],
|
|
|
|
"perScriptSourcemaps": "yes",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Server (Web, Chrome)",
|
2022-06-14 14:37:10 +08:00
|
|
|
"url": "http://localhost:8080?tkn=dev-token",
|
|
|
|
"preLaunchTask": "Run code server",
|
|
|
|
"presentation": {
|
|
|
|
"group": "0_vscode",
|
|
|
|
"order": 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "msedge",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "launch",
|
|
|
|
"outFiles": [],
|
|
|
|
"perScriptSourcemaps": "yes",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Server (Web, Edge)",
|
2022-06-14 14:37:10 +08:00
|
|
|
"url": "http://localhost:8080?tkn=dev-token",
|
|
|
|
"pauseForSourceMap": false,
|
|
|
|
"preLaunchTask": "Run code server",
|
|
|
|
"presentation": {
|
|
|
|
"group": "0_vscode",
|
|
|
|
"order": 3
|
|
|
|
}
|
|
|
|
},
|
2024-04-30 20:57:13 +08:00
|
|
|
{
|
|
|
|
"type": "chrome",
|
|
|
|
"request": "launch",
|
|
|
|
"outFiles": [],
|
|
|
|
"perScriptSourcemaps": "yes",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Web (Chrome)",
|
2024-04-30 20:57:13 +08:00
|
|
|
"url": "http://localhost:8080",
|
|
|
|
"preLaunchTask": "Run code web",
|
|
|
|
"presentation": {
|
|
|
|
"group": "0_vscode",
|
|
|
|
"order": 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "msedge",
|
|
|
|
"request": "launch",
|
|
|
|
"outFiles": [],
|
|
|
|
"perScriptSourcemaps": "yes",
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code Web (Edge)",
|
2024-04-30 20:57:13 +08:00
|
|
|
"url": "http://localhost:8080",
|
|
|
|
"pauseForSourceMap": false,
|
|
|
|
"preLaunchTask": "Run code web",
|
|
|
|
"presentation": {
|
|
|
|
"group": "0_vscode",
|
|
|
|
"order": 3
|
|
|
|
}
|
|
|
|
},
|
2022-06-14 14:37:10 +08:00
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "node",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "launch",
|
|
|
|
"name": "Run Unit Tests",
|
|
|
|
"program": "${workspaceFolder}/test/unit/electron/index.js",
|
2024-05-10 15:40:21 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.app/Contents/MacOS/Electron",
|
2022-06-14 14:37:10 +08:00
|
|
|
"windows": {
|
2024-05-10 15:40:21 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.exe"
|
2022-06-14 14:37:10 +08:00
|
|
|
},
|
|
|
|
"linux": {
|
2024-05-10 15:40:21 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/kylin-code"
|
2022-06-14 14:37:10 +08:00
|
|
|
},
|
|
|
|
"outputCapture": "std",
|
|
|
|
"args": [
|
|
|
|
"--remote-debugging-port=9222"
|
|
|
|
],
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"cascadeTerminateToConfigurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Attach to Kylin Code"
|
2022-06-14 14:37:10 +08:00
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"MOCHA_COLORS": "true"
|
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"hidden": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"type": "node",
|
2022-06-14 14:37:10 +08:00
|
|
|
"request": "launch",
|
|
|
|
"name": "Run Unit Tests For Current File",
|
|
|
|
"program": "${workspaceFolder}/test/unit/electron/index.js",
|
2024-05-10 15:40:21 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.app/Contents/MacOS/Electron",
|
2022-06-14 14:37:10 +08:00
|
|
|
"windows": {
|
2024-05-10 15:40:21 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.exe"
|
2022-06-14 14:37:10 +08:00
|
|
|
},
|
|
|
|
"linux": {
|
2024-05-10 15:40:21 +08:00
|
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/kylin-code"
|
2022-06-14 14:37:10 +08:00
|
|
|
},
|
|
|
|
"cascadeTerminateToConfigurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Attach to Kylin Code"
|
2022-06-14 14:37:10 +08:00
|
|
|
],
|
|
|
|
"outputCapture": "std",
|
|
|
|
"args": [
|
|
|
|
"--remote-debugging-port=9222",
|
|
|
|
"--run",
|
|
|
|
"${relativeFile}"
|
|
|
|
],
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"outFiles": [
|
|
|
|
"${workspaceFolder}/out/**/*.js"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"MOCHA_COLORS": "true"
|
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"hidden": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Launch Smoke Test",
|
2024-04-30 20:57:13 +08:00
|
|
|
"program": "${workspaceFolder}/test/smoke/test/index.js",
|
2022-06-14 14:37:10 +08:00
|
|
|
"cwd": "${workspaceFolder}/test/smoke",
|
|
|
|
"timeout": 240000,
|
|
|
|
"args": [
|
|
|
|
"-l",
|
2024-05-10 15:40:21 +08:00
|
|
|
"${workspaceFolder}/.build/electron/Kylin-Code.app/Contents/MacOS/Electron"
|
2022-06-14 14:37:10 +08:00
|
|
|
],
|
|
|
|
"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"
|
|
|
|
]
|
2024-04-30 20:57:13 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Monaco Editor Playground",
|
|
|
|
"type": "chrome",
|
|
|
|
"request": "launch",
|
|
|
|
"url": "http://localhost:5001",
|
|
|
|
"preLaunchTask": "Launch Http Server",
|
|
|
|
"presentation": {
|
|
|
|
"group": "monaco",
|
|
|
|
"order": 4
|
|
|
|
}
|
2022-06-14 14:37:10 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"compounds": [
|
|
|
|
{
|
2024-05-10 15:40:21 +08:00
|
|
|
"name": "Kylin Code",
|
2022-06-14 14:37:10 +08:00
|
|
|
"stopAll": true,
|
|
|
|
"configurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Launch Kylin Code Internal",
|
2022-06-14 14:37:10 +08:00
|
|
|
"Attach to Main Process",
|
|
|
|
"Attach to Extension Host",
|
|
|
|
"Attach to Shared Process",
|
|
|
|
],
|
|
|
|
"preLaunchTask": "Ensure Prelaunch Dependencies",
|
|
|
|
"presentation": {
|
|
|
|
"group": "0_vscode",
|
|
|
|
"order": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"name": "Search, Renderer, and Main processes",
|
2022-06-14 14:37:10 +08:00
|
|
|
"configurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Launch Kylin Code Internal",
|
2024-04-30 20:57:13 +08:00
|
|
|
"Attach to Main Process",
|
2022-06-14 14:37:10 +08:00
|
|
|
"Attach to Search Process"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "1_vscode",
|
|
|
|
"order": 4
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"name": "Renderer, Extension Host, and Main processes",
|
2022-06-14 14:37:10 +08:00
|
|
|
"configurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Launch Kylin Code Internal",
|
2024-04-30 20:57:13 +08:00
|
|
|
"Attach to Main Process",
|
2022-06-14 14:37:10 +08:00
|
|
|
"Attach to Extension Host"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "1_vscode",
|
|
|
|
"order": 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug Unit Tests",
|
|
|
|
"configurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Attach to Kylin Code",
|
2022-06-14 14:37:10 +08:00
|
|
|
"Run Unit Tests"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "1_vscode",
|
|
|
|
"order": 2
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug Unit Tests (Current File)",
|
|
|
|
"configurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Attach to Kylin Code",
|
2022-06-14 14:37:10 +08:00
|
|
|
"Run Unit Tests For Current File"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"group": "1_vscode",
|
|
|
|
"order": 2
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 20:57:13 +08:00
|
|
|
"name": "Renderer and Main processes",
|
2022-06-14 14:37:10 +08:00
|
|
|
"stopAll": true,
|
|
|
|
"configurations": [
|
2024-05-10 15:40:21 +08:00
|
|
|
"Launch Kylin Code Internal",
|
2024-04-30 20:57:13 +08:00
|
|
|
"Attach to Main Process"
|
2022-06-14 14:37:10 +08:00
|
|
|
],
|
|
|
|
"preLaunchTask": "Ensure Prelaunch Dependencies"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|