{
  "name": "minapp-vscode",
  "displayName": "minapp",
  "description": "wxml/pug/vue 语言中，微信小程序标签、属性的智能补全（同时提供 snippets）",
  "version": "2.1.0",
  "publisher": "qiu8310",
  "scripts": {
    "lint": "tslint src/**/*.ts",
    "clear": "remove-all dist",
    "vscode:prepublish": "npm run build",
    "build": "npm run clear && tsc -p ./",
    "watch": "tsc -watch -p ./",
    "postinstall": "node ./node_modules/vscode/bin/install",
    "test": "npm run build && node ./node_modules/vscode/bin/test"
  },
  "keywords": [
    "minapp",
    "wxml",
    "微信",
    "pug",
    "wexin"
  ],
  "license": "MIT",
  "author": "Mora <qiuzhongleiabc@126.com> (https://github.com/qiu8310)",
  "bugs": "https://github.com/qiu8310/minapp/issues",
  "homepage": "https://github.com/qiu8310/minapp/tree/master/packages/minapp-vscode",
  "repository": {
    "type": "git",
    "url": "https://github.com/qiu8310/minapp/tree/master/packages/minapp-vscode"
  },
  "engines": {
    "vscode": "^1.19.0"
  },
  "icon": "res/icon.png",
  "categories": [
    "Languages"
  ],
  "activationEvents": [
    "onLanguage:wxml-pug",
    "onLanguage:wxml",
    "onLanguage:vue"
  ],
  "main": "./dist/extension",
  "contributes": {
    "configuration": {
      "title": "minapp-vscode",
      "properties": {
        "minapp-vscode.disableCustomComponentAutocomponent": {
          "type": "boolean",
          "description": "禁止自定义组件的自动补全（自定义组件自动补全需要遍历组件文件，可能会影响性能）",
          "default": false
        },
        "minapp-vscode.resolveRoots": {
          "type": "array",
          "description": "解析文件引用关系用的根目录",
          "default": [
            "node_modules",
            "src"
          ],
          "items": {
            "type": "string"
          }
        },
        "minapp-vscode.linkAttributeNames": {
          "type": "array",
          "description": "指定 link 功能作用的标签属性，默认有 src，即 src 后面的路径会当作一个文件路径来解析；设置为空数组可以禁用 link 功能",
          "default": [
            "src"
          ],
          "items": {
            "type": "string"
          }
        },
        "minapp-vscode.formatMaxLineCharacters": {
          "type": "number",
          "description": "格式化时，单行允许的最长的长度",
          "default": 100
        },
        "minapp-vscode.disableDecorate": {
          "type": "boolean",
          "description": "禁用模板文件中 js 变量自定义样式的功能",
          "default": false
        },
        "minapp-vscode.decorateComplexInterpolation": {
          "type": "boolean",
          "description": "如果设置为 true, 则如果 {{ }} 中是表达式，也添加指定的样式；否则只会匹配 {{ }} 中的为单个变量的情况",
          "default": true
        },
        "minapp-vscode.decorateType": {
          "type": "object",
          "description": "指定模板文件中 js 变量装饰的样式。可配置的属性有 https://code.visualstudio.com/docs/extensionAPI/vscode-api#DecorationRenderOptions",
          "default": {
            "color": "#ba68c8"
          }
        },
        "minapp-vscode.snippets": {
          "type": "object",
          "description": "自定义 snippets，与系统 snippets 配置类似（注意：如果 key 和默认提供的 snippet 重复，会覆盖掉默认的）",
          "default": {
            "wxml": {
              "open-data": {
                "body": "<open-data type=\"${1|groupName,userNickName,userAvatarUrl,userGender,userCity,userProvince,userCountry,userLanguage|}\" lang=\"${2|en,zh_CN,zh_TW|}\" />$0"
              }
            },
            "pug": {
              "open-data": {
                "body": "open-data(type=\"${1|groupName,userNickName,userAvatarUrl,userGender,userCity,userProvince,userCountry,userLanguage|}\" lang=\"${2|en,zh_CN,zh_TW|}\")$0"
              }
            }
          }
        },
        "minapp-vscode.selfCloseTags": {
          "type": "array",
          "description": "指定自我闭合的标签，用于自动补全时生成代码",
          "items": {
            "type": "string"
          },
          "default": [
            "icon",
            "progress",
            "checkbox",
            "input",
            "radio",
            "slider",
            "switch",
            "audio",
            "image",
            "video",
            "camera",
            "live-player",
            "live-pusher",
            "map",
            "canvas",
            "web-view",
            "open-data"
          ]
        }
      }
    },
    "themes": [],
    "languages": [
      {
        "id": "wxml",
        "extensions": [
          ".wxml"
        ],
        "configuration": "./res/wxml.language-configuration.json"
      },
      {
        "id": "wxml-pug",
        "extensions": [
          ".wpug",
          ".pug"
        ],
        "configuration": "./res/wxml-pug.language-configuration.json"
      }
    ],
    "grammars": [
      {
        "language": "wxml",
        "scopeName": "text.html.wxml",
        "path": "./res/wxml.tmLanguage.json",
        "embeddedLanguages": {
          "text.html": "html",
          "source.js": "js"
        }
      },
      {
        "language": "wxml-pug",
        "scopeName": "text.jade.wxml",
        "path": "./res/wxml-pug.tmLanguage.json",
        "embeddedLanguages": {
          "text.html": "html",
          "source.js": "js"
        }
      }
    ]
  },
  "dependencies": {
    "@minapp/common": "^2.1.0",
    "@minapp/wxml-parser": "^2.1.0",
    "tslib": "^1.9.0"
  },
  "devDependencies": {
    "@types/mocha": "^2.2.42",
    "@types/node": "^7.0.43",
    "mora-scripts": "^1.6.22",
    "tslint": "^5.8.0",
    "typescript": "^2.6.1",
    "vscode": "^1.1.6"
  }
}
