vscode/extensions/php/package.json
2017-09-14 14:45:35 -07:00

123 lines
2.4 KiB
JSON

{
"name": "php",
"version": "0.1.0",
"publisher": "vscode",
"engines": {
"vscode": "0.10.x"
},
"activationEvents": [
"onLanguage:php"
],
"main": "./out/phpMain",
"dependencies": {
"vscode-nls": "^1.0.4"
},
"contributes": {
"languages": [
{
"id": "php",
"extensions": [
".php",
".php4",
".php5",
".phtml",
".ctp"
],
"aliases": [
"PHP",
"php"
],
"firstLine": "^#!/.*\\bphp\\b",
"mimetypes": [
"application/x-php"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "php",
"scopeName": "text.html.php",
"path": "./syntaxes/php.tmLanguage.json",
"embeddedLanguages": {
"text.html": "html",
"source.php": "php",
"source.sql": "sql",
"text.xml": "xml",
"source.js": "javascript",
"source.json": "json",
"source.css": "css"
}
}
],
"snippets": [
{
"language": "php",
"path": "./snippets/php.json"
}
],
"configuration": {
"title": "%configuration.title%",
"type": "object",
"order": 20,
"properties": {
"php.suggest.basic": {
"type": "boolean",
"default": true,
"description": "%configuration.suggest.basic%"
},
"php.validate.enable": {
"type": "boolean",
"default": true,
"description": "%configuration.validate.enable%"
},
"php.validate.executablePath": {
"type": [
"string",
"null"
],
"default": null,
"description": "%configuration.validate.executablePath%"
},
"php.validate.run": {
"type": "string",
"enum": [
"onSave",
"onType"
],
"default": "onSave",
"description": "%configuration.validate.run%"
}
}
},
"jsonValidation": [
{
"fileMatch": "composer.json",
"url": "https://getcomposer.org/schema.json"
}
],
"commands": [
{
"title": "%command.untrustValidationExecutable%",
"category": "%commands.categroy.php%",
"command": "php.untrustValidationExecutable"
}
],
"menus": {
"commandPalette": [
{
"command": "php.untrustValidationExecutable",
"when": "php.untrustValidationExecutableContext"
}
]
}
},
"scripts": {
"compile": "gulp compile-extension:php",
"watch": "gulp watch-extension:php",
"update-grammar": "node ./build/update-grammar.js"
},
"devDependencies": {
"@types/node": "^7.0.4"
}
}