package.json 4.7 KB
Newer Older
1
{
2
  "name": "json",
3 4
  "displayName": "%displayName%",
	"description": "%description%",
5
  "version": "1.0.0",
6 7 8 9 10 11
  "publisher": "vscode",
  "aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
  "engines": {
    "vscode": "0.10.x"
  },
  "activationEvents": [
12 13
    "onLanguage:json",
    "onLanguage:jsonc"
14
  ],
M
Martin Aeschlimann 已提交
15
  "enableProposedApi": true,
16 17 18
  "main": "./client/out/jsonMain",
  "scripts": {
    "compile": "gulp compile-extension:json-client && gulp compile-extension:json-server",
J
Joao Moreno 已提交
19
    "postinstall": "cd server && yarn install",
J
Joao Moreno 已提交
20
    "install-client-next": "yarn add vscode-languageclient@next",
21
    "update-grammar": "node ../../build/npm/update-grammar.js Microsoft/vscode-JSON.tmLanguage JSON.tmLanguage ./syntaxes/JSON.tmLanguage.json"
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
  },
  "contributes": {
    "languages": [
      {
        "id": "json",
        "aliases": [
          "JSON",
          "json"
        ],
        "extensions": [
          ".json",
          ".bowerrc",
          ".jshintrc",
          ".jscsrc",
          ".eslintrc",
          ".babelrc",
M
Martin Aeschlimann 已提交
38
          ".webmanifest"
39
        ],
40 41 42 43
        "filenames": [
          ".watchmanconfig",
          ".ember-cli"
        ],
44 45 46 47 48
        "mimetypes": [
          "application/json",
          "application/manifest+json"
        ],
        "configuration": "./language-configuration.json"
49 50 51 52
      },
      {
        "id": "jsonc",
        "aliases": [
53
          "JSON with Comments"
54
        ],
55
        "extensions": [
M
Martin Aeschlimann 已提交
56 57 58
          ".code-workspace",
          "language-configuration.json",
          "icon-theme.json",
59 60
          "color-theme.json",
          ".code-snippets"
61
        ],
62 63 64
        "filenames": [
          "settings.json",
          "launch.json",
65
          "tasks.json",
M
Martin Aeschlimann 已提交
66 67 68
          "keybindings.json",
          "tsconfig.json",
          "jsconfig.json"
69 70
        ],
        "configuration": "./language-configuration.json"
71 72 73 74 75 76
      }
    ],
    "grammars": [
      {
        "language": "json",
        "scopeName": "source.json",
77
        "path": "./syntaxes/JSON.tmLanguage.json"
78 79 80 81 82
      },
      {
        "language": "jsonc",
        "scopeName": "source.json",
        "path": "./syntaxes/JSON.tmLanguage.json"
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
      }
    ],
    "jsonValidation": [
      {
        "fileMatch": "*.schema.json",
        "url": "http://json-schema.org/draft-04/schema#"
      }
    ],
    "configuration": {
      "id": "json",
      "order": 20,
      "type": "object",
      "title": "JSON",
      "properties": {
        "json.schemas": {
          "type": "array",
99
          "scope": "resource",
100
          "description": "%json.schemas.desc%",
101 102 103 104
          "items": {
            "type": "object",
            "default": {
              "fileMatch": [
105
                "/myfile"
106
              ],
107
              "url": "schemaURL"
108 109 110 111 112
            },
            "properties": {
              "url": {
                "type": "string",
                "default": "/user.schema.json",
113
                "description": "%json.schemas.url.desc%"
114 115 116 117 118 119
              },
              "fileMatch": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": "MyFile.json",
120
                  "description": "%json.schemas.fileMatch.item.desc%"
121 122
                },
                "minItems": 1,
123
                "description": "%json.schemas.fileMatch.desc%"
124 125 126
              },
              "schema": {
                "$ref": "http://json-schema.org/draft-04/schema#",
127
                "description": "%json.schemas.schema.desc%"
128 129 130
              }
            }
          }
J
Johannes Rieken 已提交
131 132 133
        },
        "json.format.enable": {
          "type": "boolean",
134
          "scope": "window",
J
Johannes Rieken 已提交
135
          "default": true,
136
          "description": "%json.format.enable.desc%"
137 138 139
        },
        "json.trace.server": {
          "type": "string",
140
          "scope": "window",
141 142 143 144 145 146
          "enum": [
            "off",
            "messages",
            "verbose"
          ],
          "default": "off",
M
Martin Aeschlimann 已提交
147 148 149 150
          "description": "%json.tracing.desc%"
        },
        "json.colorDecorators.enable": {
          "type": "boolean",
151
          "scope": "window",
M
Martin Aeschlimann 已提交
152
          "default": true,
153 154
          "description": "%json.colorDecorators.enable.desc%",
          "deprecationMessage": "%json.colorDecorators.enable.deprecationMessage%"
155 156 157 158 159
        },
        "json.experimental.syntaxFolding": {
          "type": "boolean",
          "default": false,
          "description": "%json.experimental.syntaxFolding%"
160 161
        }
      }
162 163 164
    },
    "configurationDefaults": {
      "[json]": {
165 166 167
        "editor.quickSuggestions": {
          "strings": true
        }
168
      }
169 170 171
    }
  },
  "dependencies": {
172
    "vscode-extension-telemetry": "0.0.14",
173
    "vscode-languageclient": "4.0.0-next.9",
174
    "vscode-nls": "^3.2.1"
175 176
  },
  "devDependencies": {
177
    "@types/node": "7.0.43"
178
  }
179
}