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