-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
268 lines (268 loc) · 10.9 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
{
"name": "psalm-vscode-plugin",
"displayName": "Psalm (PHP Static Analysis Linting Machine)",
"description": "VS Code Plugin for Psalm",
"author": "Matthew Brown",
"contributors": [
{
"name": "Andrew Nagy"
},
{
"name": "Anthony Rainer"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/psalm/psalm-vscode-plugin/issues"
},
"version": "2.7.0",
"publisher": "getpsalm",
"categories": [
"Linters",
"Programming Languages"
],
"icon": "icon.png",
"galleryBanner": {
"color": "#582a24",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/psalm/psalm-vscode-plugin"
},
"engines": {
"vscode": "^1.80.2"
},
"activationEvents": [
"onLanguage:php",
"workspaceContains:**/*.php",
"workspaceContains:**/psalm.@(xml|xml.dist)"
],
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"vsce:package": "vsce package",
"vsce:publish": "vsce publish",
"lint": "eslint src --ext ts && tsc --noEmit"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "Since this runs Psalm, and Psalm can be configured to execute code on your computer, you should avoid opening untrusted projects while using this plugin"
}
},
"extensionKind": [
"workspace"
],
"contributes": {
"configuration": {
"type": "object",
"title": "PHP - Psalm Analyzer",
"properties": {
"psalm.phpExecutablePath": {
"type": "string",
"default": null,
"description": "Optional, defaults to searching for \"php\". The path to a PHP 7.0+ executable to use to execute the Psalm server. The PHP 7.0+ installation should preferably include and enable the PHP module `pcntl`. (Modifying requires VSCode reload)"
},
"psalm.phpExecutableArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"-dxdebug.remote_autostart=0",
"-dxdebug.remote_enable=0",
"-dxdebug_profiler_enable=0"
],
"description": "Optional (Advanced), default is '-dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0'. Additional PHP executable CLI arguments to use. (Modifying requires VSCode reload)"
},
"psalm.psalmVersion": {
"type": "string",
"default": null,
"description": "Optional (Advanced). If provided, this overrides the Psalm version detection (Modifying requires VSCode reload)"
},
"psalm.psalmScriptPath": {
"type": "string",
"default": null,
"description": "Optional (Advanced). If provided, this overrides the Psalm script to use, e.g. vendor/bin/psalm-language-server. (Modifying requires VSCode reload)"
},
"psalm.psalmScriptArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Optional (Advanced). Additional arguments to the Psalm language server. (Modifying requires VSCode reload)"
},
"psalm.psalmClientScriptPath": {
"type": "string",
"default": null,
"description": "Optional (Advanced). If provided, this overrides the Psalm script to use, e.g. vendor/bin/psalm. (Modifying requires VSCode reload)",
"markdownDeprecationMessage": "**Deprecated**: Please use `#psalm.psalmScriptPath#` instead.",
"deprecationMessage": "Deprecated: Please use psalm.psalmScriptPath instead."
},
"psalm.enableUseIniDefaults": {
"type": "boolean",
"default": false,
"description": "Enable this to use PHP-provided ini defaults for memory and error display. (Modifying requires restart)"
},
"psalm.enableDebugLog": {
"type": "boolean",
"default": false,
"description": "Enable this to print messages to the debug console when developing or debugging this VS Code extension. (Modifying requires VSCode reload)",
"deprecationMessage": "Deprecated: Please use psalm.enableVerbose, psalm.logLevel or psalm.trace.server instead."
},
"psalm.enableVerbose": {
"type": "boolean",
"default": false,
"description": "Enable --verbose mode on the Psalm Language Server (Modifying requires VSCode reload)"
},
"psalm.logLevel": {
"type": "string",
"enum": [
"NONE",
"ERROR",
"WARN",
"INFO",
"DEBUG",
"TRACE"
],
"default": "INFO",
"description": "Traces the communication between VSCode and the Psalm language server.",
"scope": "window"
},
"psalm.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the Psalm language server.",
"scope": "window"
},
"psalm.analyzedFileExtensions": {
"type": "array",
"default": [
{
"scheme": "file",
"language": "php"
},
{
"scheme": "untitled",
"language": "php"
}
],
"description": "A list of file extensions to request Psalm to analyze. By default, this only includes 'php' (Modifying requires VSCode reload)"
},
"psalm.unusedVariableDetection": {
"type": "boolean",
"default": false,
"description": "Enable this to enable unused variable and parameter detection"
},
"psalm.connectToServerWithTcp": {
"type": "boolean",
"default": false,
"description": "If this is set to true, this VSCode extension will use TCP instead of the default STDIO to communicate with the Psalm language server. (Modifying requires VSCode reload)"
},
"psalm.disableAutoComplete": {
"type": "boolean",
"default": false,
"description": "Enable to disable autocomplete on methods and properties (Modifying requires VSCode reload)"
},
"psalm.configPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"psalm.xml",
"psalm.xml.dist"
],
"description": "A list of files to checkup for psalm configuration (relative to the workspace directory)"
},
"psalm.hideStatusMessageWhenRunning": {
"type": "boolean",
"default": true,
"description": "This will hide the Psalm status from the status bar when it is started and running. This is useful to clear up a cluttered status bar."
},
"psalm.maxRestartCount": {
"type": "number",
"default": 5,
"description": "The number of times the Language Server is allowed to crash and restart before it will no longer try to restart (Modifying requires VSCode reload)"
}
}
},
"commands": [
{
"command": "psalm.restartPsalmServer",
"title": "Restart Psalm Language server",
"category": "Psalm"
},
{
"command": "psalm.analyzeWorkSpace",
"title": "Analyze Workspace",
"category": "Psalm"
},
{
"command": "psalm.reportIssue",
"title": "Report Issue",
"category": "Psalm"
},
{
"command": "psalm.showOutput",
"title": "Show Output",
"category": "Psalm"
}
],
"menus": {
"commandPalette": [
{
"command": "psalm.restartPsalmServer"
},
{
"command": "psalm.analyzeWorkSpace"
},
{
"command": "psalm.reportIssue"
},
{
"command": "psalm.showOutput"
}
]
}
},
"devDependencies": {
"@types/node": "16.11.68",
"@types/semver": "^7.5.2",
"@types/vscode": "1.80.0",
"@types/which": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vscode/vsce": "^2.21.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.8.1",
"prettier": "^3.0.3",
"ts-loader": "^9.4.4",
"typescript": "^5.2.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"eslint-plugin-prettier": "^5.0.0"
},
"dependencies": {
"@types/fs-extra": "^11.0.2",
"fs-extra": "^11.1.1",
"promisify-child-process": "^4.1.2",
"semver": "^7.5.4",
"vscode-languageclient": "^8.1.0",
"which": "^4.0.0"
}
}