{
  // 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": "Launch Deno",
      "request": "launch",
      "type": "node",
      "args": ["serve"],
      "cwd": "${workspaceFolder}/../quarto-demo",
      "runtimeExecutable": "${workspaceFolder}/package/dist/bin/tools/deno",
      "runtimeArgs": [
        "run",
        "--unstable-kv",
        "--unstable-ffi",
        "--importmap=${workspaceFolder}/src/import_map.json",
        "--inspect-brk",
        "--allow-all",
        "--v8-flags=--enable-experimental-regexp-engine,--max-old-space-size=8192,--max-heap-size=8192",
        "${workspaceFolder}/src/quarto.ts"
      ],
      "env": {
        "QUARTO_BIN_PATH": "${workspaceFolder}/package/dist/bin",
        "QUARTO_SHARE_PATH": "${workspaceFolder}/src/resources",
        "QUARTO_ROOT": "${workspaceFolder}",
        "QUARTO_DEBUG": "true"
      },
      "attachSimplePort": 9229,
      "windows": {
        "runtimeExecutable": "${workspaceFolder}\\package\\dist\\bin\\tools\\x86_64\\deno.exe"
      }
    },
    {
      "name": "Run Quarto test",
      "request": "launch",
      "type": "node",
      "program": "smoke/logging/log-level-direct.test.ts", // test script here
      "args": [], // args to the script here, like in command line smoke/smoke-all.test.t -- .\docs\smoke-all\2023\01\19\2107.qmd
      "cwd": "${workspaceFolder}/tests",
      "runtimeExecutable": "${workspaceFolder}/package/dist/bin/tools/deno",
      "runtimeArgs": [
        "test",
        "--config=test-conf.json",
        "--unstable-kv",
        "--unstable-ffi",
        "--allow-all",
        "--check",
        "--importmap=${workspaceFolder}/src/import_map.json",
        "--inspect-brk",
        "--v8-flags=--enable-experimental-regexp-engine,--max-old-space-size=8192,--max-heap-size=8192"
      ],
      "env": {
        "QUARTO_ROOT": "${workspaceFolder}",
        "QUARTO_BIN_PATH": "${workspaceFolder}/package/dist/bin",
        "QUARTO_SHARE_PATH": "${workspaceFolder}/src/resources",
        "QUARTO_DEBUG": "true"
      },
      "attachSimplePort": 9229,
      "windows": {
        "runtimeExecutable": "${workspaceFolder}\\package\\dist\\bin\\tools\\x86_64\\deno.exe"
      }
    }
  ]
}
