{
  "name": "coc-json",
  "version": "1.9.8",
  "description": "Json extension for coc.nvim",
  "main": "lib/index.js",
  "repository": {
    "type": "git",
    "url": "https://github.com/neoclide/coc-json.git"
  },
  "publisher": "chemzqm",
  "keywords": [
    "coc.nvim",
    "json"
  ],
  "engines": {
    "coc": ">= 0.0.80"
  },
  "scripts": {
    "prepare": "node esbuild.js",
    "build": "node esbuild.js",
    "lint": "tsc -p tsconfig.json",
    "test": "npm run build && coc-test 'test/**/*.test.ts'",
    "test:integration": "npm run build && coc-test 'test/**/*.test.ts'",
    "test:integration:nvim": "npm run build && coc-test --nvim 'test/**/*.test.ts'",
    "test:integration:vim": "npm run build && coc-test --vim 'test/**/*.test.ts'"
  },
  "coc-test": {
    "user-settings": {
      "json.enableDefaultSchemas": false,
      "json.schemaDownload.enable": false
    }
  },
  "activationEvents": [
    "onLanguage:json",
    "onLanguage:jsonc",
    "onCommand:json.clearCache"
  ],
  "contributes": {
    "configuration": {
      "type": "object",
      "title": "Json",
      "properties": {
        "json.enable": {
          "type": "boolean",
          "default": true,
          "description": "Enable json language server"
        },
        "json.enableDefaultSchemas": {
          "type": "boolean",
          "default": true,
          "description": "Enable builtin schemas from https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/api/json/catalog.json"
        },
        "json.trace.server": {
          "type": "string",
          "default": "off",
          "enum": [
            "off",
            "messages",
            "verbose"
          ]
        },
        "json.execArgv": {
          "type": "array",
          "default": [],
          "items": {
            "type": "string"
          }
        },
        "json.validate.enable": {
          "type": "boolean",
          "scope": "window",
          "default": true,
          "description": "Enable/disable JSON validation."
        },
        "json.validate.comments": {
          "type": "string",
          "scope": "window",
          "enum": [
            "error",
            "warning",
            "ignore"
          ],
          "description": "Severity of problems when comments are not permitted in JSON."
        },
        "json.validate.trailingCommas": {
          "type": "string",
          "scope": "window",
          "enum": [
            "error",
            "warning",
            "ignore"
          ],
          "description": "Severity of trailing comma problems."
        },
        "json.validate.schemaValidation": {
          "type": "string",
          "scope": "window",
          "enum": [
            "error",
            "warning",
            "ignore"
          ],
          "description": "Severity of problems from schema validation."
        },
        "json.validate.schemaRequest": {
          "type": "string",
          "scope": "window",
          "enum": [
            "error",
            "warning",
            "ignore"
          ],
          "description": "Severity of problems when a schema cannot be resolved."
        },
        "json.format.enable": {
          "type": "boolean",
          "scope": "window",
          "default": true,
          "description": "Enable format for json server"
        },
        "json.format.keepLines": {
          "type": "boolean",
          "scope": "window",
          "default": false,
          "description": "Keep all existing new lines when formatting."
        },
        "json.maxItemsComputed": {
          "type": "number",
          "default": 5000,
          "description": "The maximum number of outline symbols and folding regions computed (limited for performance reasons)."
        },
        "json.schemaDownload.enable": {
          "type": "boolean",
          "default": true,
          "description": "When enabled, JSON schemas can be fetched from http and https locations.",
          "tags": [
            "usesOnlineServices"
          ]
        },
        "json.schemaDownload.trustedDomains": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          },
          "markdownDescription": "Trusted domains for downloading JSON schemas. Keys can be full domains, full URIs or wildcard patterns (`https://*.example.com`, `*`), values indicate trusted (`true`) or blocked (`false`).",
          "tags": [
            "usesOnlineServices"
          ],
          "default": {}
        },
        "json.schemas": {
          "type": "array",
          "scope": "resource",
          "description": "Schemas associations for json files",
          "default": [],
          "items": {
            "type": "object",
            "default": {
              "fileMatch": [
                "/my-file"
              ],
              "url": "schemaURL"
            },
            "properties": {
              "url": {
                "type": "string",
                "default": "/user.schema.json",
                "markdownDescription": "Schema URL or path."
              },
              "fileMatch": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": "MyFile.json",
                  "markdownDescription": "File pattern to match."
                },
                "minItems": 1,
                "markdownDescription": "File patterns to match."
              },
              "schema": {
                "$ref": "http://json-schema.org/draft-04/schema#",
                "description": "Url of json schema, support file/url protocol."
              }
            }
          }
        }
      }
    },
    "jsonValidation": [
      {
        "fileMatch": "*.schema.json",
        "url": "http://json-schema.org/draft-07/schema#"
      }
    ],
    "commands": [
      {
        "command": "json.sort",
        "title": "Soct JSON document",
        "category": "JSON"
      },
      {
        "command": "json.clearCache",
        "title": "Clear schema cache",
        "category": "JSON"
      },
      {
        "command": "json.retryResolveSchema",
        "title": "Retry schema resolve",
        "category": "JSON"
      },
      {
        "command": "json.selectSchema",
        "title": "Select JSON schema",
        "category": "JSON"
      },
      {
        "command": "json.showSchemaList",
        "title": "Show associated schemas",
        "category": "JSON"
      },
      {
        "command": "json.copy",
        "title": "Copy JSON path",
        "category": "JSON"
      },
      {
        "command": "json.validate",
        "title": "Validate JSON content against a schema",
        "category": "JSON"
      },
      {
        "command": "json.configureTrustedDomains",
        "title": "Configure trusted schema domains",
        "category": "JSON"
      }
    ]
  },
  "author": "chemzqm@gmail.com",
  "license": "MIT",
  "devDependencies": {
    "@chemzqm/tsconfig": "^0.0.3",
    "@types/node": "^20.19.39",
    "coc-test": "^0.1.2",
    "coc.nvim": "^0.0.83-next.25",
    "esbuild": "^0.25.0",
    "jsonc-parser": "^3.2.0",
    "request-light": "^0.7.0",
    "typescript": "^6.0.3",
    "vscode-json-languageservice": "^5.7.2",
    "vscode-languageserver": "^8.1.0",
    "vscode-languageserver-protocol": "^3.17.3",
    "vscode-uri": "^3.0.7"
  }
}
