package.json 2.5 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4
{
	"name": "php",
	"version": "0.1.0",
	"publisher": "vscode",
5 6 7 8 9 10
	"engines": {
		"vscode": "0.10.x"
	},
	"activationEvents": [
		"onLanguage:php"
	],
E
Erich Gamma 已提交
11
	"main": "./out/phpMain",
D
Dirk Baeumer 已提交
12 13 14
	"dependencies": {
		"vscode-nls": "^1.0.4"
	},
E
Erich Gamma 已提交
15
	"contributes": {
16 17 18 19 20 21 22 23 24 25 26 27 28 29
		"languages": [
			{
				"id": "php",
				"extensions": [
					".php",
					".php4",
					".php5",
					".phtml",
					".ctp"
				],
				"aliases": [
					"PHP",
					"php"
				],
30
        "firstLine": "^#!/.*\\bphp\\b",
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
				"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"
57
			}
58
		],
E
Erich Gamma 已提交
59
		"configuration": {
60
			"title": "%configuration.title%",
E
Erich Gamma 已提交
61
			"type": "object",
62
			"order": 20,
E
Erich Gamma 已提交
63
			"properties": {
64
				"php.suggest.basic": {
65 66
					"type": "boolean",
					"default": true,
67
					"description": "%configuration.suggest.basic%"
68
				},
D
Dirk Baeumer 已提交
69 70 71
				"php.validate.enable": {
					"type": "boolean",
					"default": true,
72
					"description": "%configuration.validate.enable%"
D
Dirk Baeumer 已提交
73
				},
E
Erich Gamma 已提交
74
				"php.validate.executablePath": {
75 76 77 78
					"type": [
						"string",
						"null"
					],
E
Erich Gamma 已提交
79
					"default": null,
80
					"description": "%configuration.validate.executablePath%"
E
Erich Gamma 已提交
81 82 83
				},
				"php.validate.run": {
					"type": "string",
84 85 86 87
					"enum": [
						"onSave",
						"onType"
					],
E
Erich Gamma 已提交
88
					"default": "onSave",
89
					"description": "%configuration.validate.run%"
E
Erich Gamma 已提交
90 91
				}
			}
92 93 94 95 96 97
		},
		"jsonValidation": [
			{
				"fileMatch": "composer.json",
				"url": "https://getcomposer.org/schema.json"
			}
D
Dirk Baeumer 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
		],
		"commands": [
			{
				"title": "%command.untrustValidationExecutable%",
				"category": "%commands.categroy.php%",
				"command": "php.untrustValidationExecutable"
			}
		],
		"menus": {
			"commandPalette": [
				{
					"command": "php.untrustValidationExecutable",
					"when": "php.untrustValidationExecutableContext"
				}
			]
		}
E
Erich Gamma 已提交
114 115
	},
	"scripts": {
116
		"compile": "gulp compile-extension:php",
117 118
		"watch": "gulp watch-extension:php",
		"update-grammar": "node ../../build/npm/update-grammar.js atom/language-php grammars/php.cson ./syntaxes/php.tmLanguage.json"
119 120 121
	},
	"devDependencies": {
		"@types/node": "^7.0.4"
E
Erich Gamma 已提交
122
	}
123
}