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