forked from junstyle/vscode-php-cs-fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
163 lines (163 loc) · 6.66 KB
/
package.json
File metadata and controls
163 lines (163 loc) · 6.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"name": "php-cs-fixer",
"displayName": "php cs fixer",
"description": "PHP CS Fixer extension for VS Code, php formatter, php code beautify tool, format html",
"version": "0.1.140",
"publisher": "junstyle",
"author": "junstyle",
"license": "ISC",
"homepage": "https://github.com/junstyle/vscode-php-cs-fixer",
"icon": "logo.png",
"repository": {
"type": "git",
"url": "https://github.com/junstyle/vscode-php-cs-fixer.git"
},
"engines": {
"vscode": "^1.9.0"
},
"categories": [
"Formatters",
"Linters",
"Other"
],
"activationEvents": [
"onLanguage:php"
],
"main": "./extension",
"contributes": {
"commands": [
{
"command": "php-cs-fixer.fix",
"title": "php-cs-fixer: fix this file",
"when": "!inOutput && editorFocus && editorLangId == php"
},
{
"command": "php-cs-fixer.fix2",
"title": "php-cs-fixer: fix",
"when": "explorerResourceIsFolder"
},
{
"command": "php-cs-fixer.diff",
"title": "php-cs-fixer: diff",
"when": "resourceLangId == php"
}
],
"configuration": {
"title": "PHP CS Fixer",
"type": "object",
"properties": {
"php-cs-fixer.executablePath": {
"type": "string",
"default": "php-cs-fixer",
"description": "Points to the php-cs-fixer exectuable, eg: win: php-cs-fixer.bat, other: php-cs-fixer; or points to php-cs-fixer.phar path, eg: /full/path/of/php-cs-fixer.phar"
},
"php-cs-fixer.executablePathWindows": {
"type": "string",
"description": "Points to the php-cs-fixer exectuable on Windows environments, eg: php-cs-fixer.bat. Useful if you are sharing settings among different environments."
},
"php-cs-fixer.rules": {
"type": [
"string",
"object"
],
"default": "@PSR2",
"description": "PHP CS Fixer level setting (@PSR1, @PSR2, @Symfony). Support json formatted value. @see: https://github.com/FriendsOfPHP/PHP-CS-Fixer"
},
"php-cs-fixer.config": {
"type": "string",
"default": ".php_cs;.php_cs.dist",
"description": "config file (.php_cs, .php_cs.dist or custom defined) can place in workspace root folder or .vscode folder or any other folder (full path)"
},
"php-cs-fixer.allowRisky": {
"type": "boolean",
"default": false,
"description": "Are risky fixers allowed"
},
"php-cs-fixer.pathMode": {
"type": "string",
"enum": [
"override",
"intersection"
],
"default": "override",
"description": "--path-mode can be override or intersection, intersection only works on explorer context menu action, not works for current focused file. detail see:https://github.com/FriendsOfPHP/PHP-CS-Fixer#usage"
},
"php-cs-fixer.exclude": {
"type": "array",
"default": [],
"description": "--path-mode=intersection has a conflict with auto format on save, so you can use `exclude option` instead of. glob strings."
},
"php-cs-fixer.onsave": {
"type": "boolean",
"default": false,
"description": "Execute PHP CS Fixer on save"
},
"php-cs-fixer.autoFixByBracket": {
"type": "boolean",
"default": true,
"description": "when press down the key } auto fix the code in the brackets {}"
},
"php-cs-fixer.autoFixBySemicolon": {
"type": "boolean",
"default": false,
"description": "when press down the key ; auto fix the code at the current line"
},
"php-cs-fixer.formatHtml": {
"type": "boolean",
"default": false,
"description": "whether formatting html at the same time"
},
"php-cs-fixer.documentFormattingProvider": {
"type": "boolean",
"default": true,
"description": "register php document formatting provider, right mouse-click context menu, show as 'Format Document', after changing this option you should restart your editor."
},
"php-cs-fixer.lastDownload": {
"type": "integer",
"default": 1,
"description": "last automatically download php-cs-fixer time, if you want to disable auto download for latest php-cs-fixer.phar set to 0. just for automatically installed user."
},
"php-cs-fixer.showOutput": {
"type": "boolean",
"default": true,
"description": "whether show the output panel when fix files"
}
}
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == php",
"command": "php-cs-fixer.fix2",
"group": "php-cs-fixer"
},
{
"when": "explorerResourceIsFolder",
"command": "php-cs-fixer.fix2",
"group": "php-cs-fixer"
},
{
"when": "resourceLangId == php",
"command": "php-cs-fixer.diff",
"group": "php-cs-fixer"
}
]
}
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test",
"vscode:prepublish": "npm update && node ./download-phar.js"
},
"devDependencies": {
"@types/vscode": "^1.9.0",
"vscode-test": "^1.2.0"
},
"dependencies": {
"anymatch": "^3.1.1",
"download": "^7.1.0",
"htmlparser2": "^4.1.0",
"js-beautify": "^1.10.3",
"php-parser": "^3.0.0-prerelease.9"
}
}