package.json 3.1 KB
Newer Older
1 2 3 4
{
	"name": "json",
	"version": "0.1.0",
	"publisher": "vscode",
5
	"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
6
	"engines": {
7
		"vscode": "0.10.x"
8
	},
9 10 11
	"activationEvents": [
		"onLanguage:json"
	],
J
Joao Moreno 已提交
12
	"main": "./client/out/jsonMain",
13
	"scripts": {
J
Joao Moreno 已提交
14 15
		"compile": "gulp compile-extension:json-client && gulp compile-extension:json-server",
		"postinstall": "npm --prefix server install server"
16
	},
17
	"contributes": {
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
		"languages": [
			{
				"id": "json",
				"aliases": [
					"JSON",
					"json"
				],
				"extensions": [
					".json",
					".bowerrc",
					".jshintrc",
					".jscsrc",
					".eslintrc"
				],
				"mimetypes": [
					"application/json"
34 35
				],
				"configuration": "./json.configuration.json"
36 37 38 39 40 41 42 43 44 45 46 47 48
			}
		],
		"grammars": [
			{
				"language": "json",
				"scopeName": "source.json",
				"path": "./syntaxes/JSON.tmLanguage"
			}
		],
		"jsonValidation": [
			{
				"fileMatch": "*.schema.json",
				"url": "http://json-schema.org/draft-04/schema#"
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
			},
			{
				"fileMatch": "package.json",
				"url": "vscode://schemas/vscode-extensions"
			},
			{
				"fileMatch": "vscode://defaultsettings/keybindings.json",
				"url": "vscode://schemas/keybindings"
			},
			{
				"fileMatch": "%APP_SETTINGS_HOME%/keybindings.json",
				"url": "vscode://schemas/keybindings"
			},
			{
				"fileMatch": "vscode://defaultsettings/settings.json",
				"url": "vscode://schemas/settings"
			},
			{
				"fileMatch": "%APP_SETTINGS_HOME%/settings.json",
				"url": "vscode://schemas/settings"
			},
			{
				"fileMatch": "/.vscode/settings.json",
				"url": "vscode://schemas/settings"
			},
			{
				"fileMatch": "/.vscode/launch.json",
				"url": "vscode://schemas/launch"
			},
			{
				"fileMatch": "/.vscode/tasks.json",
				"url": "vscode://schemas/tasks"
			},
			{
				"fileMatch": "%APP_SETTINGS_HOME%/snippets/*.json",
				"url": "vscode://schemas/snippets"
85
			}
86
		],
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
		"configuration": {
			"id": "json",
			"order": 20,
			"type": "object",
			"title": "JSON configuration",
			"properties" : {
				"json.schemas" : {
					"type": "array",
					"description": "Associate schemas to JSON files in the current project",
					"items": {
						"type": "object",
						"default": { "fileMatch": [ "{{/myfile}}" ], "url": "{{schemaURL}}" },
						"properties": {
							"url": {
								"type": "string",
								"default": "/user.schema.json",
								"description": "A URL to a schema or a relative path to a schema in the current directory"
							},
							"fileMatch": {
								"type": "array",
								"items": {
									"type": "string",
									"default": "MyFile.json",
									"description": "A file pattern that can contain '*' to match against when resolving JSON files to schemas."
								},
								"minItems": 1,
								"description": "An array of file patterns to match against when resolving JSON files to schemas."
							},
							"schema": {
								"$ref": "http://json-schema.org/draft-04/schema#",
								"description": "The schema definition for the given URL. The schema only needs to be provided to avoid accesses to the schema URL."
							}
						}
					}
				}
122 123 124 125
			}
		}
	},
	"dependencies": {
126 127
		"vscode-languageclient": "^1.3.1",
		"vscode-extension-telemetry": "^0.0.5"
128 129
	}
}