{
  "version": "0.2.0",
  // List of configurations. Add new configurations or edit existing ones.
  "configurations": [
    {
      "name": "Launch VS Code Extension",
      "type": "extensionHost",
      "request": "launch",
      "preLaunchTask": "BuildAndStartWorkspace",
      "runtimeExecutable": "${execPath}",
      "args": [
        "--extensionDevelopmentPath=${workspaceRoot}",
        "--disable-extensions",
        "${workspaceFolder}/sampleWorkspace/sampleWorkspace.code-workspace"
      ],
      "sourceMaps": true,
      "env": {
        "APOLLO_ENGINE_ENDPOINT": "http://localhost:7096/apollo",
        "APOLLO_FEATURE_FLAGS": "rover"
        //"APOLLO_ROVER_LANGUAGE_IDS": "graphql,javascript"
      },
      "outFiles": ["${workspaceRoot}/lib/**/*.js"]
    },
    {
      "name": "Attach to TS Server",
      "type": "node",
      "request": "attach",
      "protocol": "inspector",
      "port": 6009,
      "sourceMaps": true
    },
    {
      "name": "Extension Tests",
      "type": "extensionHost",
      "request": "launch",
      "runtimeExecutable": "${execPath}",
      "args": [
        "--disable-extensions",
        "--extensionDevelopmentPath=${workspaceFolder}",
        "--extensionTestsPath=${workspaceFolder}/src/__e2e__/run.js",
        "${workspaceFolder}/sampleWorkspace/sampleWorkspace.code-workspace"
      ],
      "outFiles": ["${workspaceFolder}/lib/**/*.js"],
      "preLaunchTask": "BuildAndStartWorkspace",
      "env": { "APOLLO_ENGINE_ENDPOINT": "http://localhost:7096/apollo" }
    },
    {
      "name": "Attach to Test Debugger",
      "type": "node",
      "request": "attach",
      "protocol": "inspector",
      "port": 9001,
      "sourceMaps": true
    },
    {
      "name": "Attach to CLI Debugger",
      "type": "node",
      "request": "attach",
      "protocol": "inspector",
      "port": 9002,
      "sourceMaps": true
    }
  ],
  "compounds": [
    {
      "name": "Extension + Server",
      "configurations": ["Launch VS Code Extension", "Attach to TS Server"]
    }
  ]
}
