{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Debug Main Process",
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
            "windows": {
                "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
            },
            "program": "${workspaceRoot}/dist/index.js",
            "preLaunchTask": "Build sources"
        },
        /*
        {
            "name": "Debug Renderer Process",
            "type": "chrome",
            "request": "launch",
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
            "windows": {
                "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
            },
            "runtimeArgs": [
                "${workspaceRoot}/src",
                "--disable-dev-mode",
                "--remote-debugging-port=9222"
            ],
            "webRoot": "${workspaceRoot}/src/browser",
            "sourceMaps": true,
            "preLaunchTask": "Build sources"
        },
        */
        {
            "type": "node",
            "request": "launch",
            "name": "E2E Tests",
            "program": "${workspaceRoot}/node_modules/electron-mocha/bin/electron-mocha",
            "args": [
                "--recursive",
                "--timeout",
                "999999",
                "--colors",
                "${workspaceRoot}/dist/tests/e2e_bundle.js"
            ],
            "internalConsoleOptions": "openOnSessionStart",
            "preLaunchTask": "prepare-e2e"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "E2E Performance Tests",
            "program": "${workspaceRoot}/node_modules/electron-mocha/bin/electron-mocha",
            "args": [
                "--recursive",
                "--timeout",
                "999999",
                "--colors",
                "${workspaceRoot}/dist/tests/e2e_bundle.js"
            ],
            "internalConsoleOptions": "openOnSessionStart",
            "preLaunchTask": "prepare-e2e-performance",
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Unit Tests",
            "program": "${workspaceRoot}/node_modules/jest/bin/jest",
            "args": [],
            "internalConsoleOptions": "openOnSessionStart",
        }
    ]
}
