{
  "schema": 1,
  "id": "ext.astro",
  "name": "Astro",
  "version": "1.0.6",
  "category": "language",
  "description": "Astro components: TypeScript frontmatter between ---, markup with { … } expressions, client directives and content collections.",
  "author": "Lumen",
  "icon": "As",
  "color": "#ff5d01",
  "license": "MIT",
  "minAppVersion": "0.5.0",
  "keywords": [
    "astro"
  ],
  "readme": "",
  "settings": [],
  "pages": [],
  "agents": [],
  "views": [],
  "commands": [],
  "requires": [
    {
      "sdk": "node",
      "reason": "Astro runs on Node.js"
    }
  ],
  "addon": {
    "schema": 1,
    "languages": [
      {
        "id": "astro",
        "name": "Astro",
        "extensions": [
          ".astro"
        ],
        "icon": "As",
        "color": "#ff5d01",
        "comments": {
          "block": [
            "<!--",
            "-->"
          ]
        },
        "indentOpen": "<(?!\\/|.*\\/>)[^>]*>\\s*$|[{[(]\\s*$",
        "indentClose": "^\\s*(?:<\\/|[}\\])])",
        "completions": [
          "Astro",
          "Astro.props",
          "Astro.params",
          "Astro.request",
          "Astro.url",
          "Astro.redirect",
          "Astro.cookies",
          "Astro.locals",
          "Astro.site",
          "Astro.slots",
          "Astro.glob",
          "getStaticPaths",
          "getCollection",
          "getEntry",
          "defineCollection",
          "z",
          "prerender",
          "client:load",
          "client:idle",
          "client:visible",
          "client:media",
          "client:only",
          "server:defer",
          "set:html",
          "set:text",
          "is:inline",
          "is:raw",
          "transition:name",
          "transition:animate",
          "transition:persist",
          "define:vars"
        ],
        "snippets": [
          {
            "label": "page",
            "detail": "Page with frontmatter",
            "body": "---\nimport Layout from '${../layouts/Layout.astro}'\n\nconst ${titel} = '${Seite}'\n---\n\n<Layout title={${titel}}>\n  $0\n</Layout>"
          },
          {
            "label": "comp",
            "detail": "Component with props",
            "body": "---\ninterface Props {\n  ${titel}: ${string}\n}\n\nconst { ${titel} } = Astro.props\n---\n\n<div>{${titel}}</div>$0"
          },
          {
            "label": "paths",
            "detail": "getStaticPaths",
            "body": "export async function getStaticPaths() {\n  const ${entries} = await getCollection('${blog}')\n  return ${entries}.map((entry) => ({\n    params: { slug: entry.slug },\n    props: { entry },\n  }))\n}$0"
          },
          {
            "label": "coll",
            "detail": "Content-Collection",
            "body": "import { defineCollection, z } from 'astro:content'\n\nconst ${blog} = defineCollection({\n  type: 'content',\n  schema: z.object({\n    titel: z.string(),\n    datum: z.date(),\n  }),\n})\n\nexport const collections = { ${blog} }$0"
          },
          {
            "label": "island",
            "detail": "Island with hydration",
            "body": "<${Komponente} client:visible ${prop}={${wert}} />$0"
          },
          {
            "label": "map",
            "detail": "Liste rendern",
            "body": "{${liste}.map((${element}) => (\n  <li>{${element}.${titel}}</li>\n))}$0"
          },
          {
            "label": "style",
            "detail": "Style-Block",
            "body": "<style>\n  $0\n</style>"
          },
          {
            "label": "vars",
            "detail": "CSS-Variablen aus Frontmatter",
            "body": "<style define:vars={{ ${farbe} }}>\n  ${div} { color: var(--${farbe}); }$0\n</style>"
          },
          {
            "label": "h1",
            "detail": "<h1>",
            "body": "<h1>$0</h1>"
          },
          {
            "label": "h2",
            "detail": "<h2>",
            "body": "<h2>$0</h2>"
          },
          {
            "label": "h3",
            "detail": "<h3>",
            "body": "<h3>$0</h3>"
          },
          {
            "label": "h4",
            "detail": "<h4>",
            "body": "<h4>$0</h4>"
          },
          {
            "label": "h5",
            "detail": "<h5>",
            "body": "<h5>$0</h5>"
          },
          {
            "label": "h6",
            "detail": "<h6>",
            "body": "<h6>$0</h6>"
          },
          {
            "label": "p",
            "detail": "<p>",
            "body": "<p>$0</p>"
          },
          {
            "label": "div",
            "detail": "<div>",
            "body": "<div>$0</div>"
          },
          {
            "label": "span",
            "detail": "<span>",
            "body": "<span>$0</span>"
          },
          {
            "label": "strong",
            "detail": "<strong>",
            "body": "<strong>$0</strong>"
          },
          {
            "label": "em",
            "detail": "<em>",
            "body": "<em>$0</em>"
          },
          {
            "label": "b",
            "detail": "<b>",
            "body": "<b>$0</b>"
          },
          {
            "label": "i",
            "detail": "<i>",
            "body": "<i>$0</i>"
          },
          {
            "label": "u",
            "detail": "<u>",
            "body": "<u>$0</u>"
          },
          {
            "label": "s",
            "detail": "<s>",
            "body": "<s>$0</s>"
          },
          {
            "label": "small",
            "detail": "<small>",
            "body": "<small>$0</small>"
          },
          {
            "label": "mark",
            "detail": "<mark>",
            "body": "<mark>$0</mark>"
          },
          {
            "label": "code",
            "detail": "<code>",
            "body": "<code>$0</code>"
          },
          {
            "label": "pre",
            "detail": "<pre>",
            "body": "<pre>$0</pre>"
          },
          {
            "label": "kbd",
            "detail": "<kbd>",
            "body": "<kbd>$0</kbd>"
          },
          {
            "label": "samp",
            "detail": "<samp>",
            "body": "<samp>$0</samp>"
          },
          {
            "label": "var",
            "detail": "<var>",
            "body": "<var>$0</var>"
          },
          {
            "label": "sub",
            "detail": "<sub>",
            "body": "<sub>$0</sub>"
          },
          {
            "label": "sup",
            "detail": "<sup>",
            "body": "<sup>$0</sup>"
          },
          {
            "label": "abbr",
            "detail": "<abbr>",
            "body": "<abbr>$0</abbr>"
          },
          {
            "label": "cite",
            "detail": "<cite>",
            "body": "<cite>$0</cite>"
          },
          {
            "label": "q",
            "detail": "<q>",
            "body": "<q>$0</q>"
          },
          {
            "label": "blockquote",
            "detail": "<blockquote>",
            "body": "<blockquote>$0</blockquote>"
          },
          {
            "label": "time",
            "detail": "<time>",
            "body": "<time>$0</time>"
          },
          {
            "label": "del",
            "detail": "<del>",
            "body": "<del>$0</del>"
          },
          {
            "label": "ins",
            "detail": "<ins>",
            "body": "<ins>$0</ins>"
          },
          {
            "label": "address",
            "detail": "<address>",
            "body": "<address>$0</address>"
          },
          {
            "label": "header",
            "detail": "<header>",
            "body": "<header>$0</header>"
          },
          {
            "label": "footer",
            "detail": "<footer>",
            "body": "<footer>$0</footer>"
          },
          {
            "label": "main",
            "detail": "<main>",
            "body": "<main>$0</main>"
          },
          {
            "label": "nav",
            "detail": "<nav>",
            "body": "<nav>$0</nav>"
          },
          {
            "label": "aside",
            "detail": "<aside>",
            "body": "<aside>$0</aside>"
          },
          {
            "label": "article",
            "detail": "<article>",
            "body": "<article>$0</article>"
          },
          {
            "label": "figure",
            "detail": "<figure>",
            "body": "<figure>$0</figure>"
          },
          {
            "label": "figcaption",
            "detail": "<figcaption>",
            "body": "<figcaption>$0</figcaption>"
          },
          {
            "label": "li",
            "detail": "<li>",
            "body": "<li>$0</li>"
          },
          {
            "label": "ol",
            "detail": "<ol>",
            "body": "<ol>$0</ol>"
          },
          {
            "label": "dl",
            "detail": "<dl>",
            "body": "<dl>$0</dl>"
          },
          {
            "label": "dt",
            "detail": "<dt>",
            "body": "<dt>$0</dt>"
          },
          {
            "label": "dd",
            "detail": "<dd>",
            "body": "<dd>$0</dd>"
          },
          {
            "label": "thead",
            "detail": "<thead>",
            "body": "<thead>$0</thead>"
          },
          {
            "label": "tbody",
            "detail": "<tbody>",
            "body": "<tbody>$0</tbody>"
          },
          {
            "label": "tfoot",
            "detail": "<tfoot>",
            "body": "<tfoot>$0</tfoot>"
          },
          {
            "label": "tr",
            "detail": "<tr>",
            "body": "<tr>$0</tr>"
          },
          {
            "label": "th",
            "detail": "<th>",
            "body": "<th>$0</th>"
          },
          {
            "label": "td",
            "detail": "<td>",
            "body": "<td>$0</td>"
          },
          {
            "label": "caption",
            "detail": "<caption>",
            "body": "<caption>$0</caption>"
          },
          {
            "label": "colgroup",
            "detail": "<colgroup>",
            "body": "<colgroup>$0</colgroup>"
          },
          {
            "label": "label",
            "detail": "<label>",
            "body": "<label>$0</label>"
          },
          {
            "label": "textarea",
            "detail": "<textarea>",
            "body": "<textarea>$0</textarea>"
          },
          {
            "label": "option",
            "detail": "<option>",
            "body": "<option>$0</option>"
          },
          {
            "label": "optgroup",
            "detail": "<optgroup>",
            "body": "<optgroup>$0</optgroup>"
          },
          {
            "label": "fieldset",
            "detail": "<fieldset>",
            "body": "<fieldset>$0</fieldset>"
          },
          {
            "label": "legend",
            "detail": "<legend>",
            "body": "<legend>$0</legend>"
          },
          {
            "label": "datalist",
            "detail": "<datalist>",
            "body": "<datalist>$0</datalist>"
          },
          {
            "label": "output",
            "detail": "<output>",
            "body": "<output>$0</output>"
          },
          {
            "label": "progress",
            "detail": "<progress>",
            "body": "<progress>$0</progress>"
          },
          {
            "label": "meter",
            "detail": "<meter>",
            "body": "<meter>$0</meter>"
          },
          {
            "label": "summary",
            "detail": "<summary>",
            "body": "<summary>$0</summary>"
          },
          {
            "label": "template",
            "detail": "<template>",
            "body": "<template>$0</template>"
          },
          {
            "label": "slot",
            "detail": "<slot>",
            "body": "<slot>$0</slot>"
          },
          {
            "label": "noscript",
            "detail": "<noscript>",
            "body": "<noscript>$0</noscript>"
          },
          {
            "label": "canvas",
            "detail": "<canvas>",
            "body": "<canvas>$0</canvas>"
          },
          {
            "label": "audio",
            "detail": "<audio>",
            "body": "<audio>$0</audio>"
          },
          {
            "label": "iframe",
            "detail": "<iframe>",
            "body": "<iframe>$0</iframe>"
          },
          {
            "label": "object",
            "detail": "<object>",
            "body": "<object>$0</object>"
          },
          {
            "label": "title",
            "detail": "<title>",
            "body": "<title>$0</title>"
          },
          {
            "label": "body",
            "detail": "<body>",
            "body": "<body>$0</body>"
          },
          {
            "label": "head",
            "detail": "<head>",
            "body": "<head>$0</head>"
          },
          {
            "label": "bdi",
            "detail": "<bdi>",
            "body": "<bdi>$0</bdi>"
          },
          {
            "label": "bdo",
            "detail": "<bdo>",
            "body": "<bdo>$0</bdo>"
          },
          {
            "label": "ruby",
            "detail": "<ruby>",
            "body": "<ruby>$0</ruby>"
          },
          {
            "label": "rt",
            "detail": "<rt>",
            "body": "<rt>$0</rt>"
          },
          {
            "label": "rp",
            "detail": "<rp>",
            "body": "<rp>$0</rp>"
          },
          {
            "label": "menu",
            "detail": "<menu>",
            "body": "<menu>$0</menu>"
          },
          {
            "label": "search",
            "detail": "<search>",
            "body": "<search>$0</search>"
          },
          {
            "label": "hgroup",
            "detail": "<hgroup>",
            "body": "<hgroup>$0</hgroup>"
          },
          {
            "label": "br",
            "detail": "<br>",
            "body": "<br />$0"
          },
          {
            "label": "hr",
            "detail": "<hr>",
            "body": "<hr />$0"
          },
          {
            "label": "wbr",
            "detail": "<wbr>",
            "body": "<wbr />$0"
          },
          {
            "label": "col",
            "detail": "<col>",
            "body": "<col />$0"
          },
          {
            "label": "area",
            "detail": "<area>",
            "body": "<area />$0"
          },
          {
            "label": "base",
            "detail": "<base>",
            "body": "<base />$0"
          },
          {
            "label": "embed",
            "detail": "<embed>",
            "body": "<embed />$0"
          },
          {
            "label": "track",
            "detail": "<track>",
            "body": "<track />$0"
          }
        ],
        "run": [
          {
            "label": "astro dev",
            "command": "npx",
            "args": [
              "astro",
              "dev"
            ]
          },
          {
            "label": "astro build",
            "command": "npx",
            "args": [
              "astro",
              "build"
            ]
          },
          {
            "label": "astro check",
            "command": "npx",
            "args": [
              "astro",
              "check"
            ]
          }
        ],
        "lsp": [
          {
            "label": "astro-ls",
            "command": "astro-ls",
            "args": [
              "--stdio"
            ],
            "languageId": "astro",
            "rootMarkers": [
              "astro.config.mjs",
              "astro.config.ts",
              "package.json",
              ".git"
            ],
            "initializationOptions": {
              "typescript": {
                "tsdk": "node_modules/typescript/lib"
              }
            },
            "install": "npm i -g @astrojs/language-server",
            "package": {
              "type": "npm",
              "packages": [
                "@astrojs/language-server",
                "typescript@6"
              ]
            }
          }
        ],
        "tokenizer": "markup-astro"
      }
    ],
    "themes": [],
    "commands": [],
    "events": [],
    "templates": [
      {
        "id": "astro-site",
        "name": "templates.web.astroName",
        "description": "templates.web.astroDescription",
        "languageId": "astro",
        "kindId": "npm",
        "icon": "As",
        "color": "#ff5d01",
        "fields": [
          {
            "id": "version",
            "label": "templates.fields.version",
            "default": "0.1.0",
            "pattern": "\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?",
            "patternHint": "templates.fields.versionHint",
            "section": "templates.sections.project",
            "mono": true
          },
          {
            "id": "description",
            "label": "templates.fields.description",
            "placeholder": "templates.fields.descriptionPlaceholder",
            "required": false,
            "section": "templates.sections.project"
          },
          {
            "id": "author",
            "label": "templates.fields.author",
            "placeholder": "templates.fields.authorPlaceholder",
            "required": false,
            "section": "templates.sections.project"
          },
          {
            "id": "license",
            "label": "templates.fields.license",
            "type": "select",
            "choices": [
              {
                "value": "MIT",
                "label": "MIT"
              },
              {
                "value": "Apache-2.0",
                "label": "Apache 2.0"
              },
              {
                "value": "GPL-3.0-or-later",
                "label": "GPL 3.0"
              },
              {
                "value": "BSD-3-Clause",
                "label": "BSD 3-Clause"
              },
              {
                "value": "UNLICENSED",
                "label": "templates.fields.licenseNone"
              }
            ],
            "section": "templates.sections.project"
          },
          {
            "id": "pm",
            "label": "templates.fields.packageManager",
            "type": "select",
            "choices": [
              {
                "value": "npm",
                "label": "npm"
              },
              {
                "value": "pnpm",
                "label": "pnpm"
              },
              {
                "value": "yarn",
                "label": "Yarn"
              },
              {
                "value": "bun",
                "label": "Bun"
              }
            ],
            "section": "templates.sections.build"
          },
          {
            "id": "mdx",
            "label": "templates.web.mdxIntegration",
            "type": "toggle",
            "default": "false",
            "section": "templates.sections.options"
          },
          {
            "id": "sitemap",
            "label": "Sitemap",
            "type": "toggle",
            "default": "false",
            "section": "templates.sections.options"
          }
        ],
        "open": "src/pages/index.astro",
        "next": "templates.node.nextDev",
        "setup": [
          {
            "label": "templates.tasks.installDeps",
            "command": "{{pm}}",
            "args": [
              "install"
            ]
          }
        ],
        "files": [
          {
            "path": "package.json",
            "when": [
              {
                "field": "mdx",
                "equals": "true"
              },
              {
                "field": "sitemap",
                "equals": "true"
              }
            ],
            "content": "{\n  \"version\": \"{{version}}\",\n  \"description\": \"{{description}}\",\n  \"author\": \"{{author}}\",\n  \"license\": \"{{license}}\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"scripts\": {\n    \"dev\": \"astro dev\",\n    \"build\": \"astro build\",\n    \"preview\": \"astro preview\",\n    \"check\": \"astro check\"\n  },\n  \"dependencies\": {\n    \"astro\": \"^5.1.0\",\n    \"@astrojs/mdx\": \"^4.0.3\",\n    \"@astrojs/sitemap\": \"^3.2.1\"\n  }\n}\n"
          },
          {
            "path": "package.json",
            "when": [
              {
                "field": "mdx",
                "equals": "true"
              },
              {
                "field": "sitemap",
                "notEquals": "true"
              }
            ],
            "content": "{\n  \"version\": \"{{version}}\",\n  \"description\": \"{{description}}\",\n  \"author\": \"{{author}}\",\n  \"license\": \"{{license}}\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"scripts\": {\n    \"dev\": \"astro dev\",\n    \"build\": \"astro build\",\n    \"preview\": \"astro preview\",\n    \"check\": \"astro check\"\n  },\n  \"dependencies\": {\n    \"astro\": \"^5.1.0\",\n    \"@astrojs/mdx\": \"^4.0.3\"\n  }\n}\n"
          },
          {
            "path": "package.json",
            "when": [
              {
                "field": "mdx",
                "notEquals": "true"
              },
              {
                "field": "sitemap",
                "equals": "true"
              }
            ],
            "content": "{\n  \"version\": \"{{version}}\",\n  \"description\": \"{{description}}\",\n  \"author\": \"{{author}}\",\n  \"license\": \"{{license}}\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"scripts\": {\n    \"dev\": \"astro dev\",\n    \"build\": \"astro build\",\n    \"preview\": \"astro preview\",\n    \"check\": \"astro check\"\n  },\n  \"dependencies\": {\n    \"astro\": \"^5.1.0\",\n    \"@astrojs/sitemap\": \"^3.2.1\"\n  }\n}\n"
          },
          {
            "path": "package.json",
            "when": [
              {
                "field": "mdx",
                "notEquals": "true"
              },
              {
                "field": "sitemap",
                "notEquals": "true"
              }
            ],
            "content": "{\n  \"version\": \"{{version}}\",\n  \"description\": \"{{description}}\",\n  \"author\": \"{{author}}\",\n  \"license\": \"{{license}}\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"scripts\": {\n    \"dev\": \"astro dev\",\n    \"build\": \"astro build\",\n    \"preview\": \"astro preview\",\n    \"check\": \"astro check\"\n  },\n  \"dependencies\": {\n    \"astro\": \"^5.1.0\"\n  }\n}\n"
          },
          {
            "path": "astro.config.mjs",
            "when": [
              {
                "field": "mdx",
                "equals": "true"
              },
              {
                "field": "sitemap",
                "equals": "true"
              }
            ],
            "content": "import { defineConfig } from 'astro/config'\nimport mdx from '@astrojs/mdx'\nimport sitemap from '@astrojs/sitemap'\n\nexport default defineConfig({\n  site: 'https://example.com',\n  integrations: [mdx(), sitemap()],\n})\n"
          },
          {
            "path": "astro.config.mjs",
            "when": [
              {
                "field": "mdx",
                "equals": "true"
              },
              {
                "field": "sitemap",
                "notEquals": "true"
              }
            ],
            "content": "import { defineConfig } from 'astro/config'\nimport mdx from '@astrojs/mdx'\n\nexport default defineConfig({\n  integrations: [mdx()],\n})\n"
          },
          {
            "path": "astro.config.mjs",
            "when": [
              {
                "field": "mdx",
                "notEquals": "true"
              },
              {
                "field": "sitemap",
                "equals": "true"
              }
            ],
            "content": "import { defineConfig } from 'astro/config'\nimport sitemap from '@astrojs/sitemap'\n\nexport default defineConfig({\n  site: 'https://example.com',\n  integrations: [sitemap()],\n})\n"
          },
          {
            "path": "astro.config.mjs",
            "when": [
              {
                "field": "mdx",
                "notEquals": "true"
              },
              {
                "field": "sitemap",
                "notEquals": "true"
              }
            ],
            "content": "import { defineConfig } from 'astro/config'\n\nexport default defineConfig({\n  integrations: [],\n})\n"
          },
          {
            "path": "tsconfig.json",
            "content": "{\n  \"extends\": \"astro/tsconfigs/strict\",\n  \"include\": [\n    \".astro/types.d.ts\",\n    \"**/*\"\n  ],\n  \"exclude\": [\n    \"dist\"\n  ]\n}\n"
          },
          {
            "path": "src/layouts/Layout.astro",
            "content": "---\ninterface Props {\n  title: string\n}\nconst { title } = Astro.props\n---\n\n<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <meta name=\"viewport\" content=\"width=device-width\" />\n    <title>{title} · {{name}}</title>\n  </head>\n  <body>\n    <slot />\n  </body>\n</html>\n"
          },
          {
            "path": "src/components/Card.astro",
            "content": "---\ninterface Props {\n  title: string\n  href: string\n}\nconst { title, href } = Astro.props\n---\n\n<a class=\"card\" href={href}>{title}</a>\n\n<style>\n  .card {\n    display: block;\n    padding: 1rem;\n    border-radius: 0.5rem;\n  }\n</style>\n"
          },
          {
            "path": "src/pages/index.astro",
            "content": "---\nimport Layout from '../layouts/Layout.astro'\nimport Card from '../components/Card.astro'\n---\n\n<Layout title=\"Start\">\n  <main>\n    <h1>{{name}}</h1>\n    <Card title=\"Astro-Doku\" href=\"https://docs.astro.build\" />\n  </main>\n</Layout>\n"
          },
          {
            "path": "public/.gitkeep",
            "content": ""
          },
          {
            "path": ".gitignore",
            "content": "node_modules/\ndist/\n.env\n*.log\n.astro/\n.angular/\n.lumen/\n"
          },
          {
            "path": "README.md",
            "content": "# {{name}}\n\n{{description}}\n\n```bash\n{{pm}} install\n{{pm}} run dev\n{{pm}} run build\n```\n"
          },
          {
            "path": "src/pages/beispiel.mdx",
            "when": {
              "field": "mdx",
              "equals": "true"
            },
            "content": "---\nlayout: ../layouts/Layout.astro\ntitle: Example\n---\n\n# MDX in {{name}}\n\nMarkdown with **components**.\n"
          }
        ]
      }
    ],
    "projectKinds": [],
    "snippets": [],
    "id": "ext.astro",
    "name": "Astro",
    "version": "1.0.6",
    "description": "Astro components: TypeScript frontmatter between ---, markup with { … } expressions, client directives and content collections.",
    "author": "Lumen",
    "icon": "As",
    "color": "#ff5d01",
    "category": "language"
  }
}
