package.json 3.8 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 16 17
  "main": "./client/out/jsonMain",
  "scripts": {
    "compile": "gulp compile-extension:json-client && gulp compile-extension:json-server",
    "postinstall": "cd server && npm install",
    "install-client-next": "npm install vscode-languageclient@next -f -S",
18 19
    "install-client-local": "npm install ../../../vscode-languageserver-node/client -f -S",
    "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",
36 37
          ".webmanifest",
          ".code-workspace"
38 39 40 41 42 43 44 45 46 47 48 49
        ],
        "mimetypes": [
          "application/json",
          "application/manifest+json"
        ],
        "configuration": "./language-configuration.json"
      }
    ],
    "grammars": [
      {
        "language": "json",
        "scopeName": "source.json",
50
        "path": "./syntaxes/JSON.tmLanguage.json"
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
      }
    ],
    "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",
67
          "scope": "resource",
68
          "description": "%json.schemas.desc%",
69 70 71 72
          "items": {
            "type": "object",
            "default": {
              "fileMatch": [
73
                "/myfile"
74
              ],
75
              "url": "schemaURL"
76 77 78 79 80
            },
            "properties": {
              "url": {
                "type": "string",
                "default": "/user.schema.json",
81
                "description": "%json.schemas.url.desc%"
82 83 84 85 86 87
              },
              "fileMatch": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": "MyFile.json",
88
                  "description": "%json.schemas.fileMatch.item.desc%"
89 90
                },
                "minItems": 1,
91
                "description": "%json.schemas.fileMatch.desc%"
92 93 94
              },
              "schema": {
                "$ref": "http://json-schema.org/draft-04/schema#",
95
                "description": "%json.schemas.schema.desc%"
96 97 98
              }
            }
          }
J
Johannes Rieken 已提交
99 100 101
        },
        "json.format.enable": {
          "type": "boolean",
102
          "scope": "window",
J
Johannes Rieken 已提交
103
          "default": true,
104
          "description": "%json.format.enable.desc%"
105 106 107
        },
        "json.trace.server": {
          "type": "string",
108
          "scope": "window",
109 110 111 112 113 114
          "enum": [
            "off",
            "messages",
            "verbose"
          ],
          "default": "off",
M
Martin Aeschlimann 已提交
115 116 117 118
          "description": "%json.tracing.desc%"
        },
        "json.colorDecorators.enable": {
          "type": "boolean",
119
          "scope": "window",
M
Martin Aeschlimann 已提交
120
          "default": true,
R
rebornix 已提交
121 122
		  "description": "%json.colorDecorators.enable.desc%",
		  "deprecationMessage": "%json.colorDecorators.enable.deprecationMessage%"
123 124
        }
      }
125 126 127
    },
    "configurationDefaults": {
      "[json]": {
128 129 130
        "editor.quickSuggestions": {
          "strings": true
        }
131
      }
132 133 134
    }
  },
  "dependencies": {
135
    "vscode-extension-telemetry": "0.0.8",
136
    "vscode-languageclient": "^3.4.0-next.13",
137
    "vscode-nls": "2.0.2"
138 139 140
  },
  "devDependencies": {
    "@types/node": "^6.0.51"
141
  }
142
}