This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
451 lines (451 loc) · 16.4 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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
{
"name": "coc-metals",
"version": "1.0.14",
"description": "coc.nvim extension for Metals, the Scala language server",
"keywords": [
"scala",
"lsp",
"language server",
"scalameta",
"coc.nvim"
],
"repository": {
"type": "git",
"url": "https://github.com/scalameta/coc-metals"
},
"contributors": [
{
"name": "ckipp01 <[email protected]>",
"url": "https://github.com/ckipp01"
},
{
"name": "Gabriele Petronella",
"url": "https://github.com/gabro"
},
{
"name": "Jesse Atkinson",
"url": "https://github.com/jsatk"
}
],
"bugs": "https://github.com/scalameta/coc-metals/issues",
"license": "Apache-2.0",
"engines": {
"coc": "^0.0.78"
},
"main": "lib/index.js",
"scripts": {
"clean": "rimraf lib",
"build": "tsc --noEmit && parcel build src/index.ts --out-dir lib/ --target node --no-source-maps",
"format": "prettier --write '**/*{ts,json}'",
"format-check": "prettier --check '**/*{ts,json}'",
"prepare": "npm-run-all clean build",
"watch": "parcel serve src/index.ts --out-dir lib/ --target node"
},
"activationEvents": [
"onLanguage:scala",
"workspaceContains:build.sbt",
"workspaceContains:build.sc",
"workspaceContains:build.gradle",
"workspaceContains:pom.xml",
"workspaceContains:project/build.properties",
"workspaceContains:**/scala/**"
],
"contributes": {
"rootPatterns": [
{
"filetype": "scala",
"patterns": [
"build.sbt",
"build.sc",
"build.gradle",
"pom.xml"
]
}
],
"configurationDefaults": {
"[scala]": {
"editor.suggestSelection": "first"
}
},
"configuration": {
"title": "Metals",
"properties": {
"metals.enable": {
"type": "boolean",
"default": true,
"description": "Enable the coc-metals extension"
},
"metals.serverVersion": {
"type": "string",
"default": "0.11.2",
"markdownDescription": "The version of the Metals server artifact. Requires reloading the window.\n\n**Change only if you know what you're doing**"
},
"metals.serverProperties": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Optional list of properties to pass along to the Metals server. By default, the environment variable `JAVA_OPTS` and `.jvmopts` file are respected. \n\nExample: `-Dhttps.proxyHost=… -Dhttps.proxyPort=…` or `-Dmetals.statistics=all`"
},
"metals.ammoniteJvmProperties": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Optional list of JVM properties to pass along to the Ammonite server. Each property needs to be a separate item.\n\nExample: `-Xmx1G` or `-Xms100M`"
},
"metals.javaHome": {
"type": "string",
"markdownDescription": "Optional path to the Java home directory. Requires reloading the window.\n\nDefaults to the most recent Java 8 version computed by the `locate-java-home` npm package."
},
"metals.sbtScript": {
"type": "string",
"markdownDescription": "Optional absolute path to an `sbt` executable to use for running `sbt bloopInstall`.\n\nBy default, Metals uses `java -jar sbt-launch.jar` with an embedded launcher while respecting `.jvmopts` and `.sbtopts`.\n\nUpdate this setting if your `sbt` script requires more customizations like using environment variables."
},
"metals.millScript": {
"type": "string",
"markdownDescription": "Optional absolute path to a `mill` executable to use for running `mill mill.contrib.Bloop/install`.\n\nBy default, Metals uses an embedded `millw` script while respecting `.mill-version` file.\n\nUpdate this setting if your `mill` script requires more customizations."
},
"metals.mavenScript": {
"type": "string",
"markdownDescription": "Optional absolute path to a `mvn` executable to use for running `mvn ch.epfl.scala:maven-bloop_2.10:<bloop_version>:bloopInstall`.\n\nBy default, Metals uses an embedded `mvnw` script.\n\nUpdate this setting if your `mvn` script requires more customizations."
},
"metals.gradleScript": {
"type": "string",
"markdownDescription": "Optional absolute path to a `gradle` executable to use for running `gradle bloopInstall`.\n\nBy default, Metals uses an embedded `gradlew` ukcript.\n\nUpdate this setting if your `gradle` script requires more customizations."
},
"metals.scalafmtConfigPath": {
"type": "string",
"markdownDescription": "Optional custom path to the .scalafmt.conf file.\n\nShould be an absolute path using forward slashes `/` for file separators (even on Windows)."
},
"metals.scalafixConfigPath": {
"type": "string",
"markdownDescription": "Optional custom path to the .scalafix.conf file.\n\nShould be an absolute path and use forward slashes `/` for file separators (even on Windows)."
},
"metals.bloopVersion": {
"type": "string",
"markdownDescription": "This version will be used for the Bloop build tool plugin, for any supported build tool, while importing in Metals as well as for running the embedded server"
},
"metals.bloopSbtAlreadyInstalled": {
"type": "boolean",
"markdownDescription": "If true, Metals will not generate a `project/metals.sbt` file under the assumption that sbt-bloop is already manually installed in the sbt build. Build import will fail with a 'not valid command bloopInstall' error in case Bloop is not manually installed in the build when using this option."
},
"metals.customRepositories": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Optional list of custom resolvers passed to Coursier when fetching metals dependencies.\n\nFor documentation on accepted values see the [Coursier documentation](https://get-coursier.io/docs/other-repositories).\n\nThe extension will pass these to Coursier using the COURSIER_REPOSITORIES environment variable after joining the custom repositories with a pipe character (|)."
},
"metals.excludedPackages": {
"type": "array",
"default": [],
"markdownDescription": "List of packages you'd like to be left out of completions, symbol searches, and code actions.\n\nEx. `akka.actor.typed.javadsl` will ensure nothing in the `javadsl` package gets recommended to you.\n\nYou can find the list of default exclusions [here on the Metals website](https://scalameta.org/metals/docs/editors/new-editor.html#excluded-packages).\n\nIf you need to remove one of the defaults, you can simply include it and preface it with `--`."
},
"metals.statusBarEnabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Turn on usage of the statusBar integration.\n\nNote: You need to ensure you are adding something like `%{coc#status()}` in order to display it, or use a plugin with status integration."
},
"metals.superMethodLensesEnabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable goto super method code lens"
},
"metals.enableStripMarginOnTypeFormatting": {
"type": "boolean",
"default": true,
"markdownDescription": "When enabled, if you press the return key from the first line of a multiline string containing a pipe, it will automatically add `.stripMargin.`"
},
"metals.treeviews.initialWidth": {
"type": "number",
"default": 40,
"description": "Initial TreeViews panel width"
},
"metals.treeviews.alignment": {
"type": "string",
"default": "left",
"enum": [
"left",
"right"
],
"description": "TreeViews panel position"
},
"metals.treeviews.initialViews": {
"type": "object",
"default": [
{
"name": "metalsCompile",
"size": 10,
"expanded": []
},
{
"name": "metalsPackages",
"size": 40,
"expanded": [
[
"projects:"
]
]
},
{
"name": "metalsBuild",
"size": 15,
"expanded": []
}
]
},
"metals.treeviews.toggleNode": {
"type": "string",
"default": "<CR>",
"description": "Expand/Collapse tree node"
},
"metals.treeviews.forceChildrenReload": {
"type": "string",
"default": "f",
"description": "Force the reloading of the children of this node. May be useful when the wrong result is cached and tree contains invalid data."
},
"metals.treeviews.gotoParentNode": {
"type": "string",
"default": "p",
"description": "Go to parent node"
},
"metals.treeviews.gotoFirstChild": {
"type": "string",
"default": "K",
"description": "Go to first child"
},
"metals.treeviews.gotoLastChild": {
"type": "string",
"default": "J",
"description": "Go to last child"
},
"metals.treeviews.gotoPrevSibling": {
"type": "string",
"default": "<C-k>",
"description": "Go to prev sibling"
},
"metals.treeviews.gotoNextSibling": {
"type": "string",
"default": "<C-j>",
"description": "Go to next sibling"
},
"metals.treeviews.executeCommand": {
"type": "string",
"default": "r",
"description": "Execute command for node"
},
"metals.treeviews.executeCommandAndOpenSplit": {
"type": "string",
"default": "s",
"description": "Execute command and open node under cursor in horizontal split (if node is class, trait and so on)"
},
"metals.treeviews.executeCommandAndOpenVSplit": {
"type": "string",
"default": "v",
"description": "Execute command and open node under cursor in vertical split (if node is class, trait and so on)"
},
"metals.treeviews.executeCommandAndOpenTab": {
"type": "string",
"default": "t",
"description": "Execute command and open node under cursor in tab (if node is class, trait and so on)"
},
"metals.showInferredType": {
"type": "boolean",
"description": "When this option is enabled, each method that has infered types have those types displayed as extra info in the hover window."
},
"metals.showImplicitArguments": {
"type": "boolean",
"description": "When this option is enabled, each method that has implicit arguments have those aruments displayed as extra info in the hover window."
},
"metals.showImplicitConversionsAndClasses": {
"type": "boolean",
"description": "When this option is enabled, each implicit method and class is displayed as extra info in the hover window."
},
"metals.fallbackScalaVersion": {
"type": "string",
"default": "automatic",
"enum": [
"automatic",
"2.13.4",
"2.13.3",
"2.13.2",
"2.13.1",
"2.13.0",
"2.12.13",
"2.12.12",
"2.12.11",
"2.12.10",
"2.12.9",
"2.12.8",
"2.11.12",
"3.0.0-M3",
"3.0.0-M2",
"3.0.0-M1"
],
"markdownDescription": "The Scala compiler version that is used as the default or fallback in case a file doesn't belong to any build target or the specified Scala version isn't supported by Metals.\n\nThis applies to standalone Scala files, worksheets, and Ammonite scripts."
}
}
},
"commands": [
{
"command": "metals.analyze-stacktrace",
"category": "Metals",
"title": "Analyze Stacktrace"
},
{
"command": "metals.restartServer",
"category": "Metals",
"title": "Restart server"
},
{
"command": "metals.build-import",
"category": "Metals",
"title": "Import build"
},
{
"command": "metals.build-connect",
"category": "Metals",
"title": "Connect to a running build server"
},
{
"command": "metals.build-disconnect",
"category": "Metals",
"title": "Disconnect from the build server without restarting"
},
{
"command": "metals.bsp-switch",
"category": "Metals",
"title": "Switch build server"
},
{
"command": "metals.generate-bsp-config",
"category": "Metals",
"title": "Attempt to generate bsp config for build tool."
},
{
"command": "metals.build-disconnect",
"category": "Metals",
"title": "Disconnect from the build server without restarting"
},
{
"command": "metals.bsp-switch",
"category": "Metals",
"title": "Switch build server"
},
{
"command": "metals.build-restart",
"category": "Metals",
"title": "Restart the build server"
},
{
"command": "metals.sources-scan",
"category": "Metals",
"title": "Rescan sources"
},
{
"command": "metals.compile-cascade",
"category": "Metals",
"title": "Cascade compile"
},
{
"command": "metals.compile-cancel",
"category": "Metals",
"title": "Cancel compilation"
},
{
"command": "metals.compile-clean",
"category": "Metals",
"title": "Clean and full compilation"
},
{
"command": "metals.doctor-run",
"category": "metals",
"title": "Run doctor"
},
{
"command": "metals.logs-toggle",
"category": "metals",
"title": "Toggle Logs"
},
{
"command": "metals.tvp",
"category": "metals",
"title": "Show TreeView panel"
},
{
"command": "metals.tvp.view",
"category": "metals",
"title": "Execute different operations with Tree Views"
},
{
"command": "metals.revealInTreeView",
"category": "metals",
"title": "Reveal current class, trait or object in Tree View"
},
{
"command": "metals.new-scala-file",
"category": "Metals",
"title": "Create a new Scala file"
},
{
"command": "metals.quick-worksheet",
"category": "Metals",
"title": "Quickly create a new worksheet"
},
{
"command": "metals.new-scala-project",
"category": "Metals",
"title": "Create a new Scala project"
},
{
"command": "metals.goto-super-method",
"category": "Metals",
"title": "Go to super method"
},
{
"command": "metals.super-method-hierarchy",
"category": "Metals",
"title": "View super method hierarchy"
},
{
"command": "metals.ammonite-start",
"category": "Metals",
"title": "Start Ammonite build server"
},
{
"command": "metals.ammonite-stop",
"category": "Metals",
"title": "Stop Ammonite build server"
},
{
"command": "metals.reset-choice",
"category": "Metals",
"title": "Start interactive reset choice to clear old decisions."
},
{
"command": "metals.copy-worksheet-output",
"category": "Metals",
"title": "Copy worksheet output"
}
]
},
"devDependencies": {
"@types/node": "14.14.11",
"npm-run-all": "4.1.5",
"parcel-bundler": "1.12.4",
"prettier": "2.2.1",
"rimraf": "3.0.2",
"ts-loader": "8.0.10",
"typescript": "4.1.2"
},
"dependencies": {
"coc.nvim": "0.0.79",
"metals-languageclient": "0.4.2",
"promisify-child-process": "4.1.1",
"vscode-languageserver-protocol": "3.15.3"
}
}