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