mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
46 lines
1.2 KiB
JSON
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-extension:php ./src/tsconfig.json"
|
|
}
|
|
} |