mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
101 lines
3.0 KiB
JSON
101 lines
3.0 KiB
JSON
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"name": "Launch VS Code extension",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceRoot}/_extension"
|
|
],
|
|
"outFiles": [
|
|
"${workspaceRoot}/_extension/dist/**/*.js"
|
|
],
|
|
"autoAttachChildProcesses": true,
|
|
"preLaunchTask": "Watch for extension run"
|
|
},
|
|
{
|
|
"name": "Launch submodule test",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "test",
|
|
"program": "${workspaceFolder}/internal/testrunner",
|
|
"args": [
|
|
"-test.run",
|
|
"TestSubmodule/${fileBasename}"
|
|
]
|
|
},
|
|
{
|
|
"name": "Launch submodule test (with profiling)",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "test",
|
|
"program": "${workspaceFolder}/internal/testrunner",
|
|
"args": [
|
|
"-test.cpuprofile",
|
|
"${workspaceFolder}/test.prof",
|
|
"-test.run",
|
|
"TestSubmodule/${fileBasename}"
|
|
]
|
|
},
|
|
{
|
|
"name": "Launch local test",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "test",
|
|
"program": "${workspaceFolder}/internal/testrunner",
|
|
"args": [
|
|
"-test.run",
|
|
"TestLocal/${fileBasename}"
|
|
]
|
|
},
|
|
{
|
|
"name": "Launch fourslash test",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "test",
|
|
"program": "${workspaceFolder}/internal/fourslash/gen/${fileBasename}"
|
|
},
|
|
{
|
|
"name": "Launch replay test",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "test",
|
|
"program": "${workspaceFolder}/internal/lsp",
|
|
"args": [
|
|
"-test.run",
|
|
"^TestReplay$",
|
|
"-replay",
|
|
"path_to_replay_log.txt",
|
|
"-testDir",
|
|
"path_to_project_dir"
|
|
]
|
|
},
|
|
{
|
|
"name": "Launch tsgo CLI",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceFolder}/cmd/tsgo",
|
|
"cwd": "${workspaceFolder}",
|
|
"args": "${input:tsgoArgs}"
|
|
},
|
|
{
|
|
"name": "Attach to Go process",
|
|
"type": "go",
|
|
"request": "attach",
|
|
"mode": "local",
|
|
"processId": "${command:pickGoProcess}"
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "tsgoArgs",
|
|
"type": "promptString",
|
|
"description": "Enter arguments for tsgo"
|
|
}
|
|
]
|
|
}
|