forked from redhat-developer/vscode-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
350 lines (350 loc) · 11.1 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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
{
"name": "java",
"displayName": "Language Support for Java(TM) by Red Hat",
"description": "Java Linting, Intellisense, formatting, refactoring, Maven/Gradle support and more...",
"author": "Red Hat",
"icon": "icons/icon128.png",
"license": "EPL-1.0",
"version": "0.26.0",
"publisher": "redhat",
"bugs": "https://github.com/redhat-developer/vscode-java/issues",
"preview": true,
"engines": {
"vscode": "^1.22.0"
},
"repository": {
"type": "git",
"url": "https://github.com/redhat-developer/vscode-java"
},
"categories": [
"Programming Languages",
"Linters",
"Formatters",
"Snippets"
],
"keywords": [
"multi-root ready"
],
"activationEvents": [
"onLanguage:java",
"onCommand:java.show.references",
"onCommand:java.show.implementations",
"onCommand:java.open.output",
"onCommand:java.open.serverLog",
"onCommand:java.execute.workspaceCommand",
"onCommand:java.projectConfiguration.update",
"workspaceContains:pom.xml",
"workspaceContains:build.gradle"
],
"main": "./out/src/extension",
"contributes": {
"languages": [
{
"id": "java",
"extensions": [
".class"
],
"configuration": "./language-configuration.json"
}
],
"snippets": [
{
"language": "java",
"path": "./snippets/java.json"
}
],
"configuration": {
"type": "object",
"title": "Java configuration",
"properties": {
"java.home": {
"type": [
"string",
"null"
],
"default": null,
"description": "Specifies the folder path to the JDK (8 or more recent) used to launch the Java Language Server.\nOn Windows, backslashes must be escaped, i.e.\n\"java.home\":\"C:\\\\Program Files\\\\Java\\\\jdk1.8.0_161\"",
"scope": "window"
},
"java.jdt.ls.vmargs": {
"type": [
"string",
"null"
],
"default": "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
"description": "Specifies extra VM arguments used to launch the Java Language Server. Eg. use `-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication` to bypass class verification, increase the heap size to 1GB and enable String deduplication with the G1 Garbage collector",
"scope": "window"
},
"java.errors.incompleteClasspath.severity": {
"type": [
"string"
],
"enum": [
"ignore",
"info",
"warning",
"error"
],
"default": "warning",
"description": "Specifies the severity of the message when the classpath is incomplete for a Java file",
"scope": "window"
},
"java.configuration.updateBuildConfiguration": {
"type": [
"string"
],
"enum": [
"disabled",
"interactive",
"automatic"
],
"default": "interactive",
"description": "Specifies how modifications on build files update the Java classpath/configuration",
"scope": "window"
},
"java.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the Java language server.",
"scope": "window"
},
"java.import.gradle.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable the Gradle importer.",
"scope": "window"
},
"java.import.maven.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable the Maven importer.",
"scope": "window"
},
"java.referencesCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable the references code lens.",
"scope": "window"
},
"java.signatureHelp.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable the signature help.",
"scope": "window"
},
"java.implementationsCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable the implementations code lens.",
"scope": "window"
},
"java.configuration.maven.userSettings": {
"type": "string",
"default": null,
"description": "Absolute path to Maven's settings.xml",
"scope": "window"
},
"java.format.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable default Java formatter",
"scope": "window"
},
"java.saveActions.organizeImports": {
"type": "boolean",
"default": false,
"description": "Enable/disable auto organize imports on save action",
"scope": "window"
},
"java.import.exclusions": {
"type": "array",
"description": "Configure glob patterns for excluding folders",
"default": [
"**/node_modules/**",
"**/.metadata/**",
"**/archetype-resources/**",
"**/META-INF/maven/**"
],
"scope": "window"
},
"java.contentProvider.preferred": {
"type": "string",
"description": "Preferred content provider (a 3rd party decompiler id, usually)",
"default": null,
"scope": "window"
},
"java.autobuild.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable the 'auto build'",
"scope": "window"
},
"java.completion.overwrite": {
"type": "boolean",
"default": true,
"description": "When set to true, code completion overwrites the current text. When set to false, code is simply added instead.",
"scope": "window"
},
"java.completion.favoriteStaticMembers": {
"type": "array",
"description": "Defines a list of static members or types with static members. Content assist will propose those static members even if the import is missing.",
"default": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*"
],
"scope": "window"
},
"java.completion.importOrder": {
"type": "array",
"description": "Defines the sorting order of import statements. A package or type name prefix (e.g. 'org.eclipse') is a valid entry. An import is always added to the most specific group.",
"default": [
"java",
"javax",
"com",
"org"
],
"scope": "window"
},
"java.progressReports.enabled": {
"type": "boolean",
"description": "[Experimental] Enable/disable progress reports from background processes on the server.",
"default": true,
"scope": "window"
},
"java.format.settings.url": {
"type": "string",
"description": "Specifies the url or file path to the [Eclipse formatter xml settings](https://github.com/redhat-developer/vscode-java/wiki/Formatter-settings).",
"default": null,
"scope": "window"
},
"java.format.settings.profile": {
"type": "string",
"description": "Optional formatter profile name from the Eclipse formatter settings.",
"default": null,
"scope": "window"
},
"java.format.comments.enabled": {
"type": "boolean",
"description": "Includes the comments during code formatting.",
"default": true,
"scope": "window"
},
"java.format.onType.enabled": {
"type": "boolean",
"description": "Enable/disable automatic block formatting when typing `;`, `<enter>` or `}`",
"default": true,
"scope": "window"
}
}
},
"commands": [
{
"command": "java.projectConfiguration.update",
"title": "Update project configuration",
"category": "Java"
},
{
"command": "java.open.serverLog",
"title": "Open Java Language Server log file",
"category": "Java"
},
{
"command": "java.workspace.compile",
"title": "Force Java compilation",
"category": "Java"
},
{
"command": "java.edit.organizeImports",
"title": "Organize Imports",
"category": "Java"
},
{
"command": "java.open.formatter.settings",
"title": "Open Java formatter settings",
"category": "Java"
}
],
"keybindings": [
{
"command": "java.projectConfiguration.update",
"key": "shift+alt+u",
"when": "editorFocus"
},
{
"command": "java.edit.organizeImports",
"key": "shift+alt+o",
"when": "editorTextFocus && !editorReadonly && editorLangId == java"
},
{
"command": "java.workspace.compile",
"key": "shift+alt+b"
}
],
"menus": {
"explorer/context": [
{
"command": "java.projectConfiguration.update",
"when": "resourceFilename =~ /(.*\\.gradle)|(pom.xml)$/",
"group": "1_javaactions"
}
],
"editor/context": [
{
"command": "java.edit.organizeImports",
"when": "editorLangId == java",
"group": "1_javaactions"
},
{
"command": "java.projectConfiguration.update",
"when": "resourceFilename =~ /(.*\\.gradle)|(pom.xml)$/",
"group": "1_javaactions"
}
],
"commandPalette": [
{
"command": "java.edit.organizeImports",
"when": "!editorReadonly && editorLangId == java"
}
]
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test",
"build-server": "./node_modules/.bin/gulp build_server",
"watch-server": "./node_modules/.bin/gulp watch_server",
"tslint": "./node_modules/.bin/gulp tslint"
},
"devDependencies": {
"typescript": "^2.3.4",
"vscode": "^1.1.17",
"mocha": "^3.2.0",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.39",
"@types/glob": "5.0.30",
"gulp": "^3.9.1",
"gulp-tslint": "^8.1.3",
"tslint": "^5.9.1",
"gulp-decompress": "2.0.1",
"gulp-download": "0.0.1"
},
"dependencies": {
"vscode-languageclient": "^4.1.3",
"find-java-home": "0.2.0",
"tmp": "^0.0.31",
"path-exists": "^3.0.0",
"expand-home-dir": "^0.0.3",
"glob": "^7.1.1"
}
}