package.json 3.7 KB
Newer Older
1
{
2 3 4 5 6 7 8 9 10 11
  "name": "json",
  "version": "0.1.0",
  "publisher": "vscode",
  "aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
  "engines": {
    "vscode": "0.10.x"
  },
  "activationEvents": [
    "onLanguage:json"
  ],
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",
35 36
          ".webmanifest",
          ".code-workspace"
37 38 39 40 41 42 43 44 45 46 47 48
        ],
        "mimetypes": [
          "application/json",
          "application/manifest+json"
        ],
        "configuration": "./language-configuration.json"
      }
    ],
    "grammars": [
      {
        "language": "json",
        "scopeName": "source.json",
49
        "path": "./syntaxes/JSON.tmLanguage.json"
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
      }
    ],
    "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",
66
          "scope": "resource",
67
          "description": "%json.schemas.desc%",
68 69 70 71
          "items": {
            "type": "object",
            "default": {
              "fileMatch": [
72
                "/myfile"
73
              ],
74
              "url": "schemaURL"
75 76 77 78 79
            },
            "properties": {
              "url": {
                "type": "string",
                "default": "/user.schema.json",
80
                "description": "%json.schemas.url.desc%"
81 82 83 84 85 86
              },
              "fileMatch": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": "MyFile.json",
87
                  "description": "%json.schemas.fileMatch.item.desc%"
88 89
                },
                "minItems": 1,
90
                "description": "%json.schemas.fileMatch.desc%"
91 92 93
              },
              "schema": {
                "$ref": "http://json-schema.org/draft-04/schema#",
94
                "description": "%json.schemas.schema.desc%"
95 96 97
              }
            }
          }
J
Johannes Rieken 已提交
98 99 100
        },
        "json.format.enable": {
          "type": "boolean",
101
          "scope": "window",
J
Johannes Rieken 已提交
102
          "default": true,
103
          "description": "%json.format.enable.desc%"
104 105 106
        },
        "json.trace.server": {
          "type": "string",
107
          "scope": "window",
108 109 110 111 112 113
          "enum": [
            "off",
            "messages",
            "verbose"
          ],
          "default": "off",
M
Martin Aeschlimann 已提交
114 115 116 117
          "description": "%json.tracing.desc%"
        },
        "json.colorDecorators.enable": {
          "type": "boolean",
118
          "scope": "window",
M
Martin Aeschlimann 已提交
119
          "default": true,
120 121
          "description": "%json.colorDecorators.enable.desc%",
          "deprecationMessage": "%json.colorDecorators.enable.deprecationMessage%"
122 123
        }
      }
124 125 126
    },
    "configurationDefaults": {
      "[json]": {
127 128 129
        "editor.quickSuggestions": {
          "strings": true
        }
130
      }
131 132 133
    }
  },
  "dependencies": {
134
    "vscode-extension-telemetry": "0.0.8",
135
    "vscode-languageclient": "^3.5.0",
136
    "vscode-nls": "2.0.2"
137 138
  },
  "devDependencies": {
139
    "@types/node": "7.0.43"
140
  }
J
Joao Moreno 已提交
141
}