vscode/extensions/php/package.json
2016-03-01 11:40:17 +01:00

46 lines
1.2 KiB
JSON

{
"name": "php",
"version": "0.1.0",
"publisher": "vscode",
"engines": { "vscode": "*" },
"activationEvents": ["onLanguage:php"],
"main": "./out/phpMain",
"contributes": {
"languages": [{
"id": "php",
"extensions": [ ".php", ".phtml", ".ctp" ],
"aliases": [ "PHP", "php" ],
"mimetypes": ["application/x-php"],
"configuration": "./php.configuration.json"
}],
"snippets": [{
"language": "php",
"path": "./snippets/php.json"
}],
"configuration": {
"title": "PHP Configuration options",
"type": "object",
"properties": {
"php.validate.enable": {
"type": "boolean",
"default": true,
"description": "Whether php validation is enabled or not."
},
"php.validate.executablePath": {
"type": ["string", "null"],
"default": null,
"description": "Points to the php executable."
},
"php.validate.run": {
"type": "string",
"enum": ["onSave", "onType"],
"default": "onSave",
"description": "Whether the linter is run on save or on type."
}
}
}
},
"scripts": {
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-plugin:php ./src/tsconfig.json"
}
}