-
Notifications
You must be signed in to change notification settings - Fork 131
/
package.json
205 lines (205 loc) · 7.34 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
{
"name": "vscode-javac",
"displayName": "Java Language Support",
"description": "Java support using the Java Compiler API",
"icon": "icon.png",
"version": "0.2.46",
"publisher": "georgewfraser",
"repository": {
"type": "git",
"url": "https://github.com/georgewfraser/java-language-server"
},
"license": "MIT",
"engines": {
"vscode": "^1.37.0"
},
"categories": [
"Debuggers",
"Programming Languages",
"Linters"
],
"keywords": [
"java"
],
"activationEvents": [
"onLanguage:java",
"onDebug"
],
"main": "./out/lib/extension",
"contributes": {
"languages": [
{
"id": "java",
"extensions": [
".java"
],
"aliases": [
"Java"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "java",
"scopeName": "source.java",
"path": "./lib/java.tmLanguage.json"
}
],
"snippets": [
{
"language": "java",
"path": "./snippets/java.json"
}
],
"configuration": {
"title": "Java configuration",
"properties": {
"java.home": {
"type": "string",
"description": "Absolute path to your Java home directory"
},
"java.classPath": {
"type": "array",
"items": {
"type": "string"
},
"description": "Relative paths from workspace root to .jar files, .zip files, or folders that should be included in the Java class path"
},
"java.docPath": {
"type": "array",
"items": {
"type": "string"
},
"description": "Relative paths from workspace root to .jar files or .zip files containing source code, or to folders that should be included in the Java doc path"
},
"java.externalDependencies": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[^:]+:[^:]+:[^:]+(:[^:]+:[^:]+)?$"
},
"description": "External dependencies of the form groupId:artifactId:version or groupId:artifactId:packaging:version:scope"
},
"java.testMethod": {
"type": "array",
"items": {
"type": "string"
},
"description": "Command to run one test method, for example [\"mvn\", \"test\", \"-Dtest=${class}#${method}\""
},
"java.debugTestMethod": {
"type": "array",
"items": {
"type": "string"
},
"description": "Command to debug one test method, for example [\"mvn\", \"test\", \"-Dmaven.surefire.debug\", \"-Dtest=${class}#${method}\". The test should start paused, listening for the debugger on port 5005."
},
"java.testClass": {
"type": "array",
"items": {
"type": "string"
},
"description": "Command to run all tests in a class, for example [\"mvn\", \"test\", \"-Dtest=${class}\""
},
"java.addExports": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of modules to allow access to, for example [\"jdk.compiler/com.sun.tools.javac.api\"]"
},
"java.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the language server."
}
}
},
"configurationDefaults": {
"[java]": {
"editor.formatOnSave": true
}
},
"breakpoints": [
{
"language": "java"
}
],
"debuggers": [
{
"type": "java",
"label": "Java",
"program": "./dist/debug_adapter_mac.sh",
"languages": [
"java"
],
"configurationAttributes": {
"attach": {
"required": [
"port",
"sourceRoots"
],
"properties": {
"port": {
"type": "integer",
"description": "The same port you used in -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y",
"default": "5005"
},
"sourceRoots": {
"type": "array",
"items": {
"type": "string"
},
"description": "Directories that are the root of a tree of source files. For example, if there is a class `com.foo.MyClass` in `src/java/com/foo/MyClass`, then `src/java` is a source root."
}
}
}
},
"configurationSnippets": [
{
"label": "Java Debug: Attach",
"description": "Debug a running java program using JDWP.",
"body": {
"type": "java",
"request": "attach",
"name": "Java",
"port": 5005,
"sourceRoots": []
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"vscode:build": "vsce package -o build.vsix",
"vscode:publish": "vsce publish patch",
"compile": "npx tsc -p ./",
"watch": "npx tsc -watch -p ./",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"dependencies": {
"adm-zip": "^0.4.13",
"jsonc-parser": "^2.1.1",
"vscode-debugadapter": "^1.35.0",
"vscode-languageclient": "^5.3.0-next.4"
},
"devDependencies": {
"@types/adm-zip": "^0.4.32",
"@types/mocha": "^2.2.42",
"@types/node": "^10.14.6",
"@types/vscode": "^1.37.0",
"typescript": "^3.9.10",
"vsce": "^2.9.2",
"vscode-debugadapter-testsupport": "^1.35.0",
"vscode-test": "^1.2.0"
}
}