{
  "name": "coc-toml",
  "version": "2.1.0",
  "description": "toml extension for coc.nvim",
  "author": "kkiyama117 <k.kiyama117@gmail.com>",
  "publisher": "kkiyama117 <k.kiyama117@gmail.com>",
  "license": "MIT",
  "main": "lib/index.js",
  "keywords": [
    "coc.nvim",
    "toml"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/kkiyama117/coc-toml.git"
  },
  "bugs": {
    "url": "https://github.com/kkiyama117/coc-toml/issues"
  },
  "engines": {
    "coc": "^0.0.82"
  },
  "prettier": {
    "singleQuote": true,
    "printWidth": 80,
    "semi": true
  },
  "dependencies": {},
  "devDependencies": {
    "@types/node": "^25.5.2",
    "coc.nvim": "0.0.82",
    "esbuild": "^0.28.0",
    "npm-run-all": "^4.1.5",
    "prettier": "^3.8.1",
    "rimraf": "^6.1.3",
    "typescript": "^6.0.2"
  },
  "activationEvents": [
    "onLanguage:toml",
    "onLanguage:cargoLock"
  ],
  "contributes": {
    "grammars": [
      {
        "language": "toml",
        "scopeName": "source.toml",
        "path": "./toml.tmLanguage.json"
      }
    ],
    "languages": [
      {
        "id": "toml",
        "aliases": [
          "TOML"
        ],
        "extensions": [
          ".toml"
        ],
        "filenames": [
          "Cargo.lock"
        ],
        "configuration": "./language-configuration.json"
      }
    ],
    "commands": [
      {
        "command": "tombi.refreshCache",
        "title": "Tombi: Refresh Cache"
      },
      {
        "command": "tombi.selectSchema",
        "title": "Tombi: Select Schema"
      },
      {
        "command": "tombi.showLanguageServerVersion",
        "title": "Tombi: Show Language Server Version"
      },
      {
        "command": "tombi.restartLanguageServer",
        "title": "Tombi: Restart Language Server"
      }
    ],
    "configuration": {
      "title": "Tombi",
      "properties": {
        "tombi.enabled": {
          "description": "Whether to enable the tombi extension.",
          "type": "boolean",
          "default": true
        },
        "tombi.path": {
          "description": "Absolute path to the tombi executable. If not set, searches PATH.",
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "tombi.args": {
          "description": "Additional arguments passed to the tombi lsp command.",
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "tombi.env": {
          "description": "Environment variables passed to the tombi process.",
          "type": "object",
          "default": {},
          "patternProperties": {
            "^.+$": {
              "type": "string"
            }
          }
        },
        "tombi.updates.checkOnStartup": {
          "description": "Check for tombi updates on startup.",
          "type": "boolean",
          "default": true
        },
        "tombi.updates.prompt": {
          "description": "Prompt before downloading updates. If false, downloads automatically.",
          "type": "boolean",
          "default": true
        },
        "tombi.tomlVersion": {
          "description": "Default TOML specification version used by the language server when neither a schema directive, comment directive, nor tombi.toml specifies one. Sent to Tombi via workspace/didChangeConfiguration as `toml-version`.",
          "type": "string",
          "enum": [
            "v1.0.0",
            "v1.1.0"
          ],
          "default": "v1.1.0"
        },
        "tombi.schemas": {
          "description": "Associate JSON schemas with TOML files. Each entry is registered with the language server on startup via tombi/associateSchema. For project-wide config, prefer tombi.toml in the workspace root.",
          "type": "array",
          "default": [],
          "items": {
            "type": "object",
            "required": [
              "uri",
              "fileMatch"
            ],
            "properties": {
              "uri": {
                "type": "string",
                "description": "Schema URI (http(s):// or file://)."
              },
              "fileMatch": {
                "type": "array",
                "description": "Glob patterns the schema applies to (e.g. [\"Cargo.toml\"], [\"pyproject.toml\"]).",
                "items": {
                  "type": "string"
                }
              },
              "title": {
                "type": "string",
                "description": "Optional display title for the schema."
              },
              "description": {
                "type": "string",
                "description": "Optional description shown alongside the schema."
              },
              "tomlVersion": {
                "type": "string",
                "description": "TOML version to use with this schema (e.g. \"v1.0.0\" or \"v1.1.0\")."
              }
            }
          }
        }
      }
    }
  },
  "scripts": {
    "build": "node esbuild.js",
    "clean": "rimraf lib",
    "prettier:base": "prettier --parser typescript --single-quote",
    "prettier": "pnpm prettier:base --list-different \"src/**/*.ts\"",
    "format": "pnpm prettier:base --write \"src/**/*.ts\"",
    "watch": "pnpm build --watch",
    "docker:build": "docker build -t coc-toml-test .",
    "docker:test": "docker run --rm coc-toml-test",
    "docker:test:all": "docker run --rm coc-toml-test all",
    "docker:test:no-config": "docker run --rm coc-toml-test no-config",
    "docker:test:config-v1.0": "docker run --rm coc-toml-test with-config-v1.0",
    "docker:test:config-v1.1": "docker run --rm coc-toml-test with-config-v1.1",
    "docker:shell": "docker run --rm -it --entrypoint bash coc-toml-test",
    "docker:nvim": "docker run --rm -it coc-toml-test nvim /work/examples/test.toml",
    "compose:test": "docker compose -f docker/compose.yaml run --rm test",
    "compose:test:all": "docker compose -f docker/compose.yaml run --rm test-all",
    "compose:shell": "docker compose -f docker/compose.yaml run --rm shell",
    "compose:nvim": "docker compose -f docker/compose.yaml run --rm nvim",
    "test": "pnpm docker:build && pnpm docker:test:all"
  }
}