mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
This adds a dependency on vscode-json-languageservice to the client, which might not be desired, but allows for cleaner code and the correct reference should the error codes change.
112 lines
3.0 KiB
JSON
112 lines
3.0 KiB
JSON
{
|
|
"name": "json-language-features",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"publisher": "vscode",
|
|
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
|
|
"engines": {
|
|
"vscode": "0.10.x"
|
|
},
|
|
"icon": "icons/json.png",
|
|
"activationEvents": [
|
|
"onLanguage:json",
|
|
"onLanguage:jsonc"
|
|
],
|
|
"enableProposedApi": true,
|
|
"main": "./client/out/jsonMain",
|
|
"scripts": {
|
|
"compile": "gulp compile-extension:json-language-features-client && gulp compile-extension:json-language-features-server",
|
|
"postinstall": "cd server && yarn install",
|
|
"install-client-next": "yarn add vscode-languageclient@next"
|
|
},
|
|
"categories": [
|
|
"Programming Languages"
|
|
],
|
|
"contributes": {
|
|
"configuration": {
|
|
"id": "json",
|
|
"order": 20,
|
|
"type": "object",
|
|
"title": "JSON",
|
|
"properties": {
|
|
"json.schemas": {
|
|
"type": "array",
|
|
"scope": "resource",
|
|
"description": "%json.schemas.desc%",
|
|
"items": {
|
|
"type": "object",
|
|
"default": {
|
|
"fileMatch": [
|
|
"/myfile"
|
|
],
|
|
"url": "schemaURL"
|
|
},
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"default": "/user.schema.json",
|
|
"description": "%json.schemas.url.desc%"
|
|
},
|
|
"fileMatch": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"default": "MyFile.json",
|
|
"description": "%json.schemas.fileMatch.item.desc%"
|
|
},
|
|
"minItems": 1,
|
|
"description": "%json.schemas.fileMatch.desc%"
|
|
},
|
|
"schema": {
|
|
"$ref": "http://json-schema.org/draft-07/schema#",
|
|
"description": "%json.schemas.schema.desc%"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"json.format.enable": {
|
|
"type": "boolean",
|
|
"scope": "window",
|
|
"default": true,
|
|
"description": "%json.format.enable.desc%"
|
|
},
|
|
"json.trace.server": {
|
|
"type": "string",
|
|
"scope": "window",
|
|
"enum": [
|
|
"off",
|
|
"messages",
|
|
"verbose"
|
|
],
|
|
"default": "off",
|
|
"description": "%json.tracing.desc%"
|
|
},
|
|
"json.colorDecorators.enable": {
|
|
"type": "boolean",
|
|
"scope": "window",
|
|
"default": true,
|
|
"description": "%json.colorDecorators.enable.desc%",
|
|
"deprecationMessage": "%json.colorDecorators.enable.deprecationMessage%"
|
|
}
|
|
}
|
|
},
|
|
"configurationDefaults": {
|
|
"[json]": {
|
|
"editor.quickSuggestions": {
|
|
"strings": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"vscode-extension-telemetry": "0.0.22",
|
|
"vscode-json-languageservice": "^3.2.0",
|
|
"vscode-languageclient": "^5.1.0",
|
|
"vscode-nls": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^8.10.25"
|
|
}
|
|
}
|