mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
[json] language server & client as extension
This commit is contained in:
@@ -5,6 +5,14 @@
|
||||
"engines": {
|
||||
"vscode": "*"
|
||||
},
|
||||
"activationEvents": [
|
||||
"onLanguage:json"
|
||||
],
|
||||
"main": "./out/jsonMain",
|
||||
"scripts": {
|
||||
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../gulpfile.plugins.js compile-plugin:json ./src/tsconfig.json",
|
||||
"postinstall": "cd server && npm install && npm run compile && cd .."
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
@@ -37,6 +45,46 @@
|
||||
"fileMatch": "*.schema.json",
|
||||
"url": "http://json-schema.org/draft-04/schema#"
|
||||
}
|
||||
]
|
||||
],
|
||||
"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": {
|
||||
"type": "object",
|
||||
"description": "The schema definition for the given URL. The schema only needs to be provided to avoid accesses to the schema URL."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-languageclient": "^1.1.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user