// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Run Extension",
      "type": "extensionHost",
      "request": "launch",
      "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
      "outFiles": ["${workspaceFolder}/dist/**/*.js"],
      "preLaunchTask": "${defaultBuildTask}"
    },
    {
      "name": "Run Extension in test mode",
      "type": "extensionHost",
      "request": "launch",
      "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
      "outFiles": ["${workspaceFolder}/dist/**/*.js"],
      "env": {
        "DL_MOUNT_EXTENSION": "true",
        // TODO: SETTING: replace with your own extension path
        "EXTENSION_PATH": "${workspaceFolder}/deadlock-coding-0.1.12.vsix"
      },
      "preLaunchTask": "${defaultBuildTask}"
    },
    {
      "name": "Rebuild then run Extension in test mode",
      "type": "extensionHost",
      "request": "launch",
      "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
      "outFiles": ["${workspaceFolder}/dist/**/*.js"],
      "env": {
        "DL_MOUNT_EXTENSION": "true",
        // TODO: SETTING: replace with your own extension path
        "EXTENSION_PATH": "${workspaceFolder}/deadlock-coding-0.1.12.vsix"
      },
      "preLaunchTask": "tasks: build and watch"
    },
    {
      "name": "Extension Tests",
      "type": "extensionHost",
      "request": "launch",
      "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
      "outFiles": ["${workspaceFolder}/out/**/*.js", "${workspaceFolder}/dist/**/*.js"],
      "preLaunchTask": "tasks: watch-tests"
    }
  ]
}