// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/docker-existing-dockerfile
{
  "name": "Castopod Host dev",
  "dockerComposeFile": ["../docker-compose.yml", "./docker-compose.yml"],
  "service": "app",
  "workspaceFolder": "/castopod-host",
  "postCreateCommand": "composer install && npm install && npm run build:static",
  "postStartCommand": "crontab ./crontab && cron && php spark serve --host 0.0.0.0",
  "postAttachCommand": "crontab ./crontab && service cron reload",
  "shutdownAction": "stopCompose",
  "settings": {
    "terminal.integrated.defaultProfile.linux": "bash",
    "editor.formatOnSave": true,
    "[php]": {
      "editor.defaultFormatter": "bmewburn.vscode-intelephense-client",
      "editor.formatOnSave": false
    },
    "color-highlight.markerType": "dot-before",
    "files.associations": {
      "*.xml.dist": "xml",
      "spark": "php"
    }
  },
  "extensions": [
    "mikestead.dotenv",
    "bmewburn.vscode-intelephense-client",
    "streetsidesoftware.code-spell-checker",
    "naumovs.color-highlight",
    "heybourn.headwind",
    "wayou.vscode-todo-highlight",
    "esbenp.prettier-vscode",
    "bradlc.vscode-tailwindcss",
    "jamesbirtles.svelte-vscode",
    "dbaeumer.vscode-eslint",
    "stylelint.vscode-stylelint",
    "eamodio.gitlens",
    "breezelin.phpstan",
    "kasik96.latte"
  ]
}
