{
  "$schema": "vscode://schemas/vscode-extensions",
  "contributes": {
    "configuration": {
      "properties": {
        "tinymist.preview.browsing.args": {
          "description": "The arguments used by `tinymist.startDefaultPreview` command. Check `tinymist preview` to see the allowed arguments.",
          "type": "array",
          "default": ["--data-plane-host=127.0.0.1:0", "--invert-colors=auto", "--open"],
          "properties": {
            "type": "string"
          }
        },
        "tinymist.preview.background.enabled": {
          "description": "This configuration is only used for the editors that doesn't support lsp well, e.g. helix and zed. When it is enabled, the preview server listens a specific tcp port in the background. You can discover the background previewers in the preview panel.",
          "type": "boolean",
          "default": false
        },
        "tinymist.preview.background.args": {
          "description": "The arguments that the background preview server used for. It is only used when `tinymist.preview.background` is enabled. Check `tinymist preview` to see the allowed arguments.",
          "type": "array",
          "default": ["--data-plane-host=127.0.0.1:23635", "--invert-colors=auto"],
          "properties": {
            "type": "string"
          }
        },
        "tinymist.preview.refresh": {
          "title": "%extension.tinymist.config.tinymist.preview.refresh.title%",
          "markdownDescription": "%extension.tinymist.config.tinymist.preview.refresh.desc%",
          "type": "string",
          "enum": ["onSave", "onType"],
          "default": "onType",
          "enumDescriptions": [
            "%extension.tinymist.config.tinymist.preview.refresh.string.enum.onSave%",
            "%extension.tinymist.config.tinymist.preview.refresh.string.enum.onType%"
          ]
        },
        "tinymist.preview.partialRendering": {
          "title": "%extension.tinymist.config.tinymist.preview.partialRendering.title%",
          "markdownDescription": "%extension.tinymist.config.tinymist.preview.partialRendering.desc%",
          "type": "boolean",
          "default": true
        },
        "tinymist.preview.invertColors": {
          "title": "%extension.tinymist.config.tinymist.preview.invertColors.title%",
          "markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.desc%",
          "default": "never",
          "anyOf": [
            {
              "title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.title%",
              "markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.desc%",
              "type": "string",
              "enum": ["never", "auto", "always"],
              "enumDescriptions": [
                "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.enum.never%",
                "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.enum.auto%",
                "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.string.enum.always%"
              ]
            },
            {
              "title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.title%",
              "markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.desc%",
              "type": "object",
              "properties": {
                "rest": {
                  "title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.title%",
                  "markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.desc%",
                  "type": "string",
                  "enum": ["never", "auto", "always"],
                  "default": "never",
                  "enumDescriptions": [
                    "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.enum.never%",
                    "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.enum.auto%",
                    "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.rest.enum.always%"
                  ]
                },
                "image": {
                  "title": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.title%",
                  "markdownDescription": "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.desc%",
                  "type": "string",
                  "enum": ["never", "auto", "always"],
                  "default": "never",
                  "enumDescriptions": [
                    "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.string.enum.never%",
                    "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.string.enum.auto%",
                    "%extension.tinymist.config.tinymist.preview.invertColors.anyOf.object.properties.image.string.enum.always%"
                  ]
                }
              }
            }
          ]
        }
      }
    }
  }
}
