{
  "name": "@lit-labs/vscode-extension",
  "displayName": "Lit",
  "description": "Lit syntax highlighting, code completion, type-checking, and more for VS Code",
  "version": "0.0.2",
  "type": "module",
  "engines": {
    "vscode": "^1.103.0"
  },
  "private": true,
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lit/lit.git",
    "directory": "packages/labs/vscode-extension"
  },
  "categories": [
    "Programming Languages",
    "Snippets",
    "Linters"
  ],
  "activationEvents": [
    "onLanguage:javascript",
    "onLanguage:javascriptreact",
    "onLanguage:typescript",
    "onLanguage:typescriptreact"
  ],
  "main": "./extension.cjs",
  "contributes": {
    "configuration": {
      "title": "Lit",
      "properties": {}
    },
    "commands": [
      {
        "command": "lit.hello",
        "title": "Hello Lit"
      }
    ],
    "typescriptServerPlugins": [
      {
        "name": "@lit-labs/tsserver-plugin",
        "enableForWorkspaceTypeScriptVersions": true
      }
    ],
    "grammars": [
      {
        "injectTo": [
          "source.js",
          "source.js.jsx",
          "source.jsx",
          "source.ts",
          "source.tsx",
          "text.html.basic"
        ],
        "scopeName": "inline.lit-html",
        "path": "./syntaxes/vscode-lit-html/lit-html.json",
        "embeddedLanguages": {
          "meta.embedded.block.html": "html",
          "meta.embedded.block.css": "css",
          "source.css": "css"
        }
      },
      {
        "injectTo": [
          "source.js",
          "source.js.jsx",
          "source.jsx",
          "source.ts",
          "source.tsx",
          "text.html.basic"
        ],
        "scopeName": "inline.lit-html.string.injection",
        "path": "./syntaxes/vscode-lit-html/lit-html-string-injection.json",
        "embeddedLanguages": {
          "meta.template.expression.ts": "typescript"
        }
      },
      {
        "injectTo": [
          "source.js",
          "source.js.jsx",
          "source.jsx",
          "source.ts",
          "source.tsx",
          "text.html.basic"
        ],
        "scopeName": "inline.lit-html.style.injection",
        "path": "./syntaxes/vscode-lit-html/lit-html-style-injection.json",
        "embeddedLanguages": {
          "meta.template.expression.ts": "typescript"
        }
      },
      {
        "injectTo": [
          "source.js",
          "source.js.jsx",
          "source.jsx",
          "source.ts",
          "source.tsx",
          "text.html.basic"
        ],
        "scopeName": "inline.lit-html-svg",
        "path": "./syntaxes/vscode-lit-html/lit-html-svg.json",
        "embeddedLanguages": {
          "meta.embedded.block.svg": "xml"
        }
      },
      {
        "scopeName": "source.css.styled",
        "path": "./syntaxes/vscode-styled-components/css.styled.json"
      },
      {
        "injectTo": [
          "source.js",
          "source.ts",
          "source.jsx",
          "source.js.jsx",
          "source.tsx"
        ],
        "scopeName": "styled",
        "path": "./syntaxes/vscode-styled-components/styled-components.json",
        "embeddedLanguages": {
          "source.css.scss": "css",
          "meta.embedded.line.ts": "typescript"
        }
      }
    ]
  },
  "scripts": {
    "vscode:prepublish": "npm run build",
    "build": "wireit",
    "pretest": "npm run build && npm run lint",
    "lint": "eslint src --ext ts",
    "test": "wireit",
    "test:unit": "wireit",
    "test:vscode": "wireit"
  },
  "dependencies": {
    "@lit-labs/analyzer": "^0.14.0",
    "@lit-labs/tsserver-plugin": "^0.1.0"
  },
  "devDependencies": {
    "@types/node": "^22.17.0",
    "@types/vscode": "^1.103.0",
    "@vscode/test-electron": "^2.5.2",
    "typescript": "~5.9.0"
  },
  "wireit": {
    "build": {
      "command": "tsc --pretty",
      "dependencies": [
        "../analyzer:build",
        "../tsserver-plugin:build"
      ],
      "files": [
        "src/**/*.{ts,cts}",
        "tsconfig.json"
      ],
      "output": [
        "lib",
        "extension.cjs",
        "extension.cjs.map"
      ],
      "clean": "if-file-deleted"
    },
    "test": {
      "dependencies": [
        "test:unit",
        "test:vscode"
      ]
    },
    "test:unit": {
      "command": "node --enable-source-maps --test-reporter=spec --test test/lib/**/*_test.js",
      "dependencies": [
        "build"
      ],
      "files": [
        "test_files/*.ts",
        "test_files/*.golden.js"
      ],
      "output": []
    },
    "test:vscode": {
      "command": "node ./test/runExtensionTest.js",
      "dependencies": [
        "build"
      ]
    }
  }
}
