-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
308 lines (308 loc) · 12 KB
/
package.json
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
{
"name": "symfony-vscode",
"displayName": "Symfony for VSCode",
"description": "Debug and autocomplete of Symfony container",
"version": "1.0.2",
"publisher": "TheNouillet",
"repository": {
"url": "https://github.com/TheNouillet/symfony-vscode"
},
"engines": {
"vscode": "^1.25.0"
},
"icon": "media/symfony.png",
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:**/composer.json"
],
"main": "./out/extension",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "symfonyViewsContainer",
"title": "Symfony container view",
"icon": "media/logo.svg"
}
]
},
"views": {
"symfonyViewsContainer": [
{
"id": "parametersView",
"name": "Parameters view"
},
{
"id": "routeDefinitionsView",
"name": "Routes definitions view"
},
{
"id": "serviceDefinitionsView",
"name": "Services definitions view"
}
]
},
"commands": [
{
"command": "symfony-vscode.refreshServiceDefinitions",
"title": "Refresh container services definitions",
"category": "Symfony"
},
{
"command": "symfony-vscode.searchForServices",
"title": "Search for Symfony services in the services view",
"category": "Symfony",
"icon": {
"light": "media/light/search.svg",
"dark": "media/dark/search.svg"
}
},
{
"command": "symfony-vscode.clearServicesSearch",
"title": "Clear the services search criteria",
"category": "Symfony",
"icon": {
"light": "media/light/cancel.svg",
"dark": "media/dark/cancel.svg"
}
},
{
"command": "symfony-vscode.goToServiceDefinition",
"title": "Go to service definition",
"category": "Symfony",
"icon": {
"light": "media/light/goto.svg",
"dark": "media/dark/goto.svg"
}
},
{
"command": "symfony-vscode.refreshRouteDefinitions",
"title": "Refresh container routes definitions",
"category": "Symfony"
},
{
"command": "symfony-vscode.searchForRoutes",
"title": "Search for Symfony routes in the routes view",
"category": "Symfony",
"icon": {
"light": "media/light/search.svg",
"dark": "media/dark/search.svg"
}
},
{
"command": "symfony-vscode.clearRoutesSearch",
"title": "Clear the routes search criteria",
"category": "Symfony",
"icon": {
"light": "media/light/cancel.svg",
"dark": "media/dark/cancel.svg"
}
},
{
"command": "symfony-vscode.refreshParameters",
"title": "Refresh container parameters",
"category": "Symfony"
},
{
"command": "symfony-vscode.searchForParameters",
"title": "Search for Symfony parameters in the parameters view",
"category": "Symfony",
"icon": {
"light": "media/light/search.svg",
"dark": "media/dark/search.svg"
}
},
{
"command": "symfony-vscode.clearParametersSearch",
"title": "Clear the parameters search criteria",
"category": "Symfony",
"icon": {
"light": "media/light/cancel.svg",
"dark": "media/dark/cancel.svg"
}
},
{
"command": "symfony-vscode.refreshContainer",
"title": "Refresh the entire container",
"category": "Symfony"
},
{
"command": "symfony-vscode.toggleClassDisplay",
"title": "Toggle class/id display for services",
"category": "Symfony"
},
{
"command": "symfony-vscode.togglePathDisplay",
"title": "Toggle path/id display for routes",
"category": "Symfony"
},
{
"command": "symfony-vscode.refreshPHPClasses",
"title": "Reindex PHP classes",
"category": "Symfony"
}
],
"menus": {
"view/title": [
{
"command": "symfony-vscode.refreshServiceDefinitions",
"when": "view == serviceDefinitionsView",
"group": "2_workspace@1"
},
{
"command": "symfony-vscode.toggleClassDisplay",
"when": "view == serviceDefinitionsView",
"group": "2_workspace@2"
},
{
"command": "symfony-vscode.searchForServices",
"when": "view == serviceDefinitionsView",
"group": "navigation"
},
{
"command": "symfony-vscode.refreshRouteDefinitions",
"when": "view == routeDefinitionsView",
"group": "2_workspace@1"
},
{
"command": "symfony-vscode.togglePathDisplay",
"when": "view == routeDefinitionsView",
"group": "2_workspace@2"
},
{
"command": "symfony-vscode.searchForRoutes",
"when": "view == routeDefinitionsView",
"group": "navigation"
},
{
"command": "symfony-vscode.refreshParameters",
"when": "view == parametersView",
"group": "2_workspace@1"
},
{
"command": "symfony-vscode.searchForParameters",
"when": "view == parametersView",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "symfony-vscode.clearServicesSearch",
"when": "viewItem == symfony-vscode.searchItem.service",
"group": "inline"
},
{
"command": "symfony-vscode.clearRoutesSearch",
"when": "viewItem == symfony-vscode.searchItem.route",
"group": "inline"
},
{
"command": "symfony-vscode.clearParametersSearch",
"when": "viewItem == symfony-vscode.searchItem.parameter",
"group": "inline"
},
{
"command": "symfony-vscode.goToServiceDefinition",
"when": "viewItem == symfony-vscode.service",
"group": "inline"
}
]
},
"configuration": {
"title": "Symfony for VSCode",
"properties": {
"symfony-vscode.phpExecutablePath": {
"type": "string",
"default": "/usr/bin/php",
"description": "Path to the PHP executable. This path is ignored if the symfony-vscode.shellExecutable parameter is different than false"
},
"symfony-vscode.shellExecutable": {
"type": "string",
"default": false,
"description": "The shell executable path. If differant that false, console commands will be called via shell instead of just calling the PHP executable."
},
"symfony-vscode.shellCommand": {
"type": "string",
"default": false,
"description": "The shell command. Only used when calling the shell to do console commands."
},
"symfony-vscode.consolePath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the Symfony console, relative to the root directeory. If null, the extension try to guess the path with the Symfony version from the composer.json file"
},
"symfony-vscode.showConsoleErrors": {
"type": "boolean",
"default": true,
"description": "If false, the extension doesn't show error messages caused by compilation errors."
},
"symfony-vscode.enableFileWatching": {
"type": "boolean",
"default": true,
"description": "If false, the extension refresh automatically when a YAML file is modified"
},
"symfony-vscode.fileWatchingPatterns": {
"type": "array",
"default": [
"yml",
"yaml",
"xml"
],
"description": "Files with one of these extensions will trigger a container refresh on save"
},
"symfony-vscode.servicesFilters": {
"type": "object",
"default": {
"[a-f0-9]{64}_[0-9]+": "id",
"~": "id",
"instanceof\\.": "id"
},
"description": "Filter out services entirely when they match one of the given regexes. Useful for auto-generated services. Use \"id\" to filter out services by id, or \"class\" by extended class name"
},
"symfony-vscode.routesFilters": {
"type": "object",
"default": {
"^_assetic_": "id"
},
"description": "Filter out routes entirely when they match one of the given regexes. Useful for auto-generated routes. Use \"id\" to filter out routes by id, or \"path\" by route path"
},
"symfony-vscode.parametersFilters": {
"type": "array",
"default": [
"\\.class$",
"_class$"
],
"description": "Filter out parameters entirely when their ids match one of the given regexes."
},
"symfony-vscode.phpParserThrottle": {
"type": "number",
"default": 256,
"description": "Maximum number of process capable of reading PHP files. Too much processes can block file reading of other extensions and programs"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"typescript": "^2.6.1",
"vscode": "^1.1.6"
},
"dependencies": {
"graceful-fs": "^4.1.15",
"strip-json-comments": "^2.0.1",
"php-parser": "^3.0.0-prerelease.7"
}
}