mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:43:07 +00:00
131 lines
2.6 KiB
JSON
131 lines
2.6 KiB
JSON
{
|
|
"name": "php",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"publisher": "vscode",
|
|
"icon": "icons/logo.png",
|
|
"engines": {
|
|
"vscode": "0.10.x"
|
|
},
|
|
"activationEvents": [
|
|
"onLanguage:php"
|
|
],
|
|
"main": "./out/phpMain",
|
|
"dependencies": {
|
|
"vscode-nls": "^3.2.1"
|
|
},
|
|
"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": "source.php",
|
|
"path": "./syntaxes/php.tmLanguage.json"
|
|
},
|
|
{
|
|
"language": "php",
|
|
"scopeName": "text.html.php",
|
|
"path": "./syntaxes/html.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.snippets.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.43"
|
|
}
|
|
}
|