Skip to content

Commit ab867d9

Browse files
committed
Fix microsoft#46148 - split PHP extension
1 parent 213dcf8 commit ab867d9

19 files changed

Lines changed: 95 additions & 77 deletions
File renamed without changes.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"name": "php-language-features",
3+
"displayName": "%displayName%",
4+
"description": "%description%",
5+
"version": "1.0.0",
6+
"publisher": "vscode",
7+
"icon": "icons/logo.png",
8+
"engines": {
9+
"vscode": "0.10.x"
10+
},
11+
"activationEvents": [
12+
"onLanguage:php"
13+
],
14+
"main": "./out/phpMain",
15+
"dependencies": {
16+
"vscode-nls": "^3.2.1"
17+
},
18+
"contributes": {
19+
"configuration": {
20+
"title": "%configuration.title%",
21+
"type": "object",
22+
"order": 20,
23+
"properties": {
24+
"php.suggest.basic": {
25+
"type": "boolean",
26+
"default": true,
27+
"description": "%configuration.suggest.basic%"
28+
},
29+
"php.validate.enable": {
30+
"type": "boolean",
31+
"default": true,
32+
"description": "%configuration.validate.enable%"
33+
},
34+
"php.validate.executablePath": {
35+
"type": [
36+
"string",
37+
"null"
38+
],
39+
"default": null,
40+
"description": "%configuration.validate.executablePath%"
41+
},
42+
"php.validate.run": {
43+
"type": "string",
44+
"enum": [
45+
"onSave",
46+
"onType"
47+
],
48+
"default": "onSave",
49+
"description": "%configuration.validate.run%"
50+
}
51+
}
52+
},
53+
"jsonValidation": [
54+
{
55+
"fileMatch": "composer.json",
56+
"url": "https://getcomposer.org/schema.json"
57+
}
58+
],
59+
"commands": [
60+
{
61+
"title": "%command.untrustValidationExecutable%",
62+
"category": "%commands.categroy.php%",
63+
"command": "php.untrustValidationExecutable"
64+
}
65+
],
66+
"menus": {
67+
"commandPalette": [
68+
{
69+
"command": "php.untrustValidationExecutable",
70+
"when": "php.untrustValidationExecutableContext"
71+
}
72+
]
73+
}
74+
},
75+
"scripts": {
76+
"compile": "gulp compile-extension:php",
77+
"watch": "gulp watch-extension:php"
78+
},
79+
"devDependencies": {
80+
"@types/node": "7.0.43"
81+
}
82+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"configuration.suggest.basic": "Configures if the built-in PHP language suggestions are enabled. The support suggests PHP globals and variables.",
3+
"configuration.validate.enable": "Enable/disable built-in PHP validation.",
4+
"configuration.validate.executablePath": "Points to the PHP executable.",
5+
"configuration.validate.run": "Whether the linter is run on save or on type.",
6+
"configuration.title": "PHP",
7+
"commands.categroy.php": "PHP",
8+
"command.untrustValidationExecutable": "Disallow PHP validation executable (defined as workspace setting)",
9+
"displayName": "PHP Language Features",
10+
"description": "Provides rich language support for PHP files."
11+
}

extensions/php/src/features/completionItemProvider.ts renamed to extensions/php-language-features/src/features/completionItemProvider.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.

extensions/php/src/features/signatureHelpProvider.ts renamed to extensions/php-language-features/src/features/signatureHelpProvider.ts

File renamed without changes.
File renamed without changes.

extensions/php/src/features/utils/markedTextUtil.ts renamed to extensions/php-language-features/src/features/utils/markedTextUtil.ts

File renamed without changes.

extensions/php/src/features/validationProvider.ts renamed to extensions/php-language-features/src/features/validationProvider.ts

File renamed without changes.

0 commit comments

Comments
 (0)