mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
[json] move schema associations to extensions
This commit is contained in:
@@ -2,37 +2,86 @@
|
||||
"name": "javascript",
|
||||
"version": "0.1.0",
|
||||
"publisher": "vscode",
|
||||
"engines": { "vscode": "*" },
|
||||
"engines": {
|
||||
"vscode": "*"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "javascriptreact",
|
||||
"aliases": ["JavaScript React","jsx"],
|
||||
"extensions": [".jsx"],
|
||||
"configuration": "./javascript.configuration.json"
|
||||
},{
|
||||
"id": "javascript",
|
||||
"aliases": ["JavaScript", "javascript", "js"],
|
||||
"extensions": [".js", ".es6"],
|
||||
"filenames": ["jakefile"],
|
||||
"firstLine": "^#!.*\\bnode",
|
||||
"mimetypes": ["text/javascript"]
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "javascriptreact",
|
||||
"scopeName": "source.jsx",
|
||||
"path": "./syntaxes/JavaScriptReact.tmLanguage"
|
||||
},{
|
||||
"language": "javascript",
|
||||
"scopeName": "source.js",
|
||||
"path": "./syntaxes/JavaScript.tmLanguage"
|
||||
},{
|
||||
// referenced by other grammars
|
||||
"scopeName": "source.js.regexp",
|
||||
"path": "./syntaxes/Regular Expressions (JavaScript).tmLanguage"
|
||||
}],
|
||||
"snippets": [{
|
||||
"language": "javascript",
|
||||
"path": "./snippets/javascript.json"
|
||||
}]
|
||||
"languages": [
|
||||
{
|
||||
"id": "javascriptreact",
|
||||
"aliases": [
|
||||
"JavaScript React",
|
||||
"jsx"
|
||||
],
|
||||
"extensions": [
|
||||
".jsx"
|
||||
],
|
||||
"configuration": "./javascript.configuration.json"
|
||||
},
|
||||
{
|
||||
"id": "javascript",
|
||||
"aliases": [
|
||||
"JavaScript",
|
||||
"javascript",
|
||||
"js"
|
||||
],
|
||||
"extensions": [
|
||||
".js",
|
||||
".es6"
|
||||
],
|
||||
"filenames": [
|
||||
"jakefile"
|
||||
],
|
||||
"firstLine": "^#!.*\\bnode",
|
||||
"mimetypes": [
|
||||
"text/javascript"
|
||||
]
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "javascriptreact",
|
||||
"scopeName": "source.jsx",
|
||||
"path": "./syntaxes/JavaScriptReact.tmLanguage"
|
||||
},
|
||||
{
|
||||
"language": "javascript",
|
||||
"scopeName": "source.js",
|
||||
"path": "./syntaxes/JavaScript.tmLanguage"
|
||||
},
|
||||
{
|
||||
// referenced by other grammars
|
||||
"scopeName": "source.js.regexp",
|
||||
"path": "./syntaxes/Regular Expressions (JavaScript).tmLanguage"
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "javascript",
|
||||
"path": "./snippets/javascript.json"
|
||||
}
|
||||
],
|
||||
"jsonValidation": [
|
||||
{
|
||||
"fileMatch": "package.json",
|
||||
"url": "http://json.schemastore.org/project"
|
||||
},
|
||||
{
|
||||
"fileMatch": "bower.json",
|
||||
"url": "http://json.schemastore.org/bower"
|
||||
},
|
||||
{
|
||||
"fileMatch": ".bower.json",
|
||||
"url": "http://json.schemastore.org/bower"
|
||||
},
|
||||
{
|
||||
"fileMatch": ".bowerrc",
|
||||
"url": "http://json.schemastore.org/bowerrc"
|
||||
},
|
||||
{
|
||||
"fileMatch": "jsconfig.json",
|
||||
"url": "./schemas/jsconfig.schema.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user