-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
416 lines (416 loc) · 19.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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
{
"name": "kotlin",
"displayName": "Kotlin",
"description": "Code completion, debugging, linting and more",
"icon": "resources/Icon128.png",
"repository": {
"type": "git",
"url": "https://github.com/fwcd/vscode-kotlin.git"
},
"version": "0.2.36",
"preview": true,
"publisher": "fwcd",
"license": "MIT",
"categories": [
"Programming Languages",
"Debuggers",
"Formatters",
"Linters"
],
"keywords": [
"kotlin",
"ide",
"debugger"
],
"activationEvents": [
"onLanguage:kotlin",
"onDebugResolve:kotlin"
],
"main": "./dist/extension",
"contributes": {
"languages": [
{
"id": "kotlin",
"aliases": [
"Kotlin"
],
"extensions": [
".kt",
".kts"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "kotlin",
"scopeName": "source.kotlin",
"path": "./syntaxes/kotlin.tmLanguage.json"
},
{
"scopeName": "markdown.kotlin.codeblock",
"path": "./syntaxes/kotlin-codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.kotlin": "kotlin"
}
}
],
"commands": [
{
"command": "kotlin.overrideMember",
"title": "Override member(s)",
"category": "Kotlin"
}
],
"menus": {
"editor/context": [
{
"command": "kotlin.overrideMember",
"group": "Kotlin",
"when": "editorTextFocus && editorLangId == kotlin"
}
]
},
"breakpoints": [
{
"language": "kotlin"
}
],
"debuggers": [
{
"type": "kotlin",
"label": "Kotlin",
"configurationAttributes": {
"launch": {
"required": [
"projectRoot",
"mainClass"
],
"properties": {
"projectRoot": {
"type": "string",
"description": "Absolute path to your project's root folder. If you want to debug a subproject, specify the root/top-level directory here and the relative path in the 'subproject' attribute.",
"default": "${workspaceFolder}"
},
"mainClass": {
"type": "string",
"description": "The fully qualified name of your main class (usually your filename in PascalCase postfixed with Kt).",
"default": "path.to.your.MainClassKt"
},
"vmArguments": {
"type": "string",
"description": "The JVM arguments if needed by your project (usually -Dfoo=bar).",
"default": ""
},
"enableJsonLogging": {
"type": "boolean",
"description": "Enables logging of debug server JSON messages into a file defined by 'jsonLogFile'.",
"default": false
},
"jsonLogFile": {
"type": "string",
"description": "Enables logging of debug server JSON messages into a file defined by 'jsonLogFile'.",
"default": "${workspaceFolder}/ktDebugJsonLog.txt"
},
"logLevel": {
"type": "string",
"description": "Sets the logging level of the debug server for the messages in the Debug Console [NONE/ERROR/WARN/INFO/DEBUG/TRACE/DEEP_TRACE/ALL].",
"default": "INFO"
}
}
},
"attach": {
"required": [
"projectRoot",
"hostName",
"port",
"timeout"
],
"properties": {
"projectRoot": {
"type": "string",
"description": "Absolute path to your project's root folder. If you want to debug a subproject, specify the root/top-level directory here and the relative path in the 'subproject' attribute.",
"default": "${workspaceFolder}"
},
"hostName": {
"type": "string",
"description": "The host name of your running JVM.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "The port number of your running JVM.",
"default": 8000
},
"timeout": {
"type": "number",
"description": "The connection timeout.",
"default": 30000
},
"enableJsonLogging": {
"type": "boolean",
"description": "Enables logging of debug server JSON messages into a file defined by 'jsonLogFile'.",
"default": false
},
"jsonLogFile": {
"type": "string",
"description": "Enables logging of debug server JSON messages into a file defined by 'jsonLogFile'.",
"default": "${workspaceFolder}/ktDebugJsonLog.txt"
},
"logLevel": {
"type": "string",
"description": "Sets the logging level of the debug server for the messages in the Debug Console [NONE/ERROR/WARN/INFO/DEBUG/TRACE/DEEP_TRACE/ALL].",
"default": "INFO"
}
}
}
},
"initialConfigurations": [
{
"type": "kotlin",
"request": "launch",
"name": "Kotlin Launch",
"projectRoot": "${workspaceFolder}",
"mainClass": "path.to.your.MainClassKt"
}
],
"configurationSnippets": [
{
"label": "Kotlin: Launch Project",
"description": "A new Kotlin launch configuration",
"body": {
"type": "kotlin",
"request": "launch",
"name": "Kotlin Launch",
"projectRoot": "^\"\\${workspaceFolder}\"",
"mainClass": "path.to.your.MainClassKt"
}
},
{
"label": "Kotlin: Attach VM",
"description": "Attaches a debugger to a running JVM",
"body": {
"type": "kotlin",
"request": "attach",
"name": "Kotlin Attach",
"hostName": "localhost",
"port": 8000,
"timeout": 30000
}
}
]
}
],
"configuration": {
"title": "Kotlin",
"properties": {
"kotlin.java.home": {
"type": "string",
"default": "",
"description": "A custom JAVA_HOME for the language server and debug adapter to use."
},
"kotlin.java.opts": {
"type": "string",
"default": "",
"description": "Custom options using JAVA_OPTS for the language server and debug adapter."
},
"kotlin.languageServer.enabled": {
"type": "boolean",
"default": true,
"description": "[Recommended] Specifies whether the language server should be used. When enabled the extension will provide code completions and linting, otherwise just syntax highlighting. Might require a reload to apply."
},
"kotlin.languageServer.path": {
"type": "string",
"default": "",
"description": "Optionally a custom path to the language server executable."
},
"kotlin.languageServer.transport": {
"type": "string",
"enum": [
"stdio",
"tcp"
],
"description": "The transport layer beneath the language server protocol. Note that the extension will launch the server even if a TCP socket is used.",
"default": "stdio"
},
"kotlin.languageServer.port": {
"type": "integer",
"description": "The port to which the client will attempt to connect to. A random port is used if zero. Only used if the transport layer is TCP.",
"default": 0
},
"kotlin.languageServer.debugAttach.enabled": {
"type": "boolean",
"description": "[DEBUG] Whether the language server should listen for debuggers, i.e. be debuggable while running in VSCode. This is ONLY useful if you need to debug the language server ITSELF.",
"default": false
},
"kotlin.languageServer.debugAttach.port": {
"type": "integer",
"description": "[DEBUG] If transport is stdio this enables you to attach to the running language server with a debugger. This is ONLY useful if you need to debug the language server ITSELF.",
"default": 5005
},
"kotlin.languageServer.debugAttach.autoSuspend": {
"type": "boolean",
"description": "[DEBUG] If enabled (together with debugAttach.enabled), the language server will not immediately launch but instead listen on the specified attach port and wait for a debugger. This is ONLY useful if you need to debug the language server ITSELF.",
"default": false
},
"kotlin.languageServer.watchFiles": {
"type": "array",
"default": [
"**/*.kt",
"**/*.kts",
"**/*.java",
"**/pom.xml",
"**/build.gradle",
"**/settings.gradle"
],
"description": "Specifies glob patterns of files, which would be watched by LSP client. The LSP client doesn't support watching files outside a workspace folder."
},
"kotlin.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the Kotlin language server.",
"scope": "window"
},
"kotlin.codegen.enabled": {
"type": "boolean",
"description": "Whether to enable code generation to a temporary build output directory for Java interoperability (via the non-standard kotlin/buildOutputLocation LSP method). Experimental.",
"default": false
},
"kotlin.compiler.jvm.target": {
"type": "string",
"default": "default",
"description": "Specifies the JVM target, e.g. \"1.6\" or \"1.8\""
},
"kotlin.diagnostics.enabled": {
"type": "boolean",
"default": true,
"description": "Whether diagnostics (e.g. errors or warnings from the Kotlin compiler) should be emitted."
},
"kotlin.diagnostics.level": {
"type": "string",
"default": "hint",
"enum": ["error", "warning", "information", "hint"],
"description": "The minimum severity of diagnostics to emit."
},
"kotlin.diagnostics.debounceTime": {
"type": "integer",
"default": 250,
"description": "[DEBUG] Specifies the debounce time limit. Lower to increase responsiveness at the cost of possible stability issues."
},
"kotlin.linting.debounceTime": {
"type": "integer",
"default": 250,
"deprecationMessage": "The option has been renamed to `kotlin.diagnostics.debounceTime`",
"description": "[DEBUG] Specifies the debounce time limit. Lower to increase responsiveness at the cost of possible stability issues."
},
"kotlin.scripts.enabled": {
"type": "boolean",
"default": false,
"description": "Whether language features are provided for .kts scripts. Experimental and may not work properly."
},
"kotlin.scripts.buildScriptsEnabled": {
"type": "boolean",
"default": false,
"description": "Whether language features are provided for .gradle.kts scripts. Experimental and may not work properly."
},
"kotlin.indexing.enabled": {
"type": "boolean",
"default": true,
"description": "Whether global symbols in the project should be indexed automatically in the background. This enables e.g. code completion for unimported classes and functions."
},
"kotlin.completion.snippets.enabled": {
"type": "boolean",
"default": true,
"description": "Specifies whether code completion should provide snippets (true) or plain-text items (false)."
},
"kotlin.debugAdapter.enabled": {
"type": "boolean",
"default": true,
"description": "[Recommended] Specifies whether the debug adapter should be used. When enabled a debugger for Kotlin will be available."
},
"kotlin.debugAdapter.path": {
"type": "string",
"default": "",
"description": "Optionally a custom path to the debug adapter executable."
},
"kotlin.debounceTime": {
"type": "integer",
"default": 250,
"description": "[DEPRECATED] Specifies the debounce time limit. Lower to increase responsiveness at the cost of possible stability issues.",
"deprecationMessage": "Use 'kotlin.linting.debounceTime' instead"
},
"kotlin.externalSources.useKlsScheme": {
"type": "boolean",
"default": true,
"description": "[Recommended] Specifies whether URIs inside JARs should be represented using the 'kls'-scheme."
},
"kotlin.externalSources.autoConvertToKotlin": {
"type": "boolean",
"default": false,
"description": "Specifies whether decompiled/external classes should be auto-converted to Kotlin."
},
"kotlin.snippetsEnabled": {
"type": "boolean",
"default": true,
"description": "[DEPRECATED] Specifies whether code completion should provide snippets (true) or plain-text items (false).",
"deprecationMessage": "Use 'kotlin.completion.snippets.enabled'"
},
"kotlin.inlayHints.typeHints": {
"type": "boolean",
"default": false,
"description": "Whether to provide inlay hints for types on declaration sites or not."
},
"kotlin.inlayHints.parameterHints": {
"type": "boolean",
"default": false,
"description": "Whether to provide inlay hints for parameters on call sites or not."
},
"kotlin.inlayHints.chainedHints": {
"type": "boolean",
"default": false,
"description": "Whether to provide inlay hints on chained function calls or not."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "webpack --mode development -w",
"vscode:prepublish": "webpack --mode production",
"package-extension": "vsce package",
"publish-extension": "vsce publish"
},
"engines": {
"vscode": "^1.52.0"
},
"devDependencies": {
"@types/extract-zip": "^2.0.1",
"@types/node": "^12.8.1",
"@types/request-promise-native": "^1.0.18",
"@types/semver": "^7.3.9",
"@types/vscode": "^1.52.0",
"ts-loader": "^9.2.8",
"typescript": "^4.6.3",
"vsce": "^2.7.0",
"webpack": "^5.71.0",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"extract-zip": "^2.0.1",
"request": "^2.88.2",
"request-progress": "^3.0.0",
"request-promise-native": "^1.0.9",
"semver": "^7.3.5",
"vscode-debugadapter": "^1.47.0",
"vscode-debugprotocol": "^1.47.0",
"vscode-languageclient": "8.0.2-next.5"
}
}