forked from scalameta/metals-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
240 lines (240 loc) · 7.8 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
{
"name": "metals",
"displayName": "Scala (Metals)",
"description": "Scala language server with rich IDE features",
"keywords": [
"scala",
"lsp",
"language server",
"ide",
"scalameta"
],
"version": "1.5.2",
"publisher": "scalameta",
"contributors": [
{
"name": "Alexey Alekhin",
"url": "https://github.com/laughedelic"
},
{
"name": "Gabriele Petronella",
"url": "https://github.com/gabro"
},
{
"name": "Ólafur Páll Geirsson",
"url": "https://github.com/olafurpg"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/scalameta/metals-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/scalameta/metals-vscode.git"
},
"homepage": "http://metals.rocks",
"engines": {
"vscode": "^1.34.0"
},
"icon": "images/logo.png",
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:scala",
"workspaceContains:build.sbt",
"workspaceContains:build.sc",
"workspaceContains:project/build.properties",
"workspaceContains:**/scala/**"
],
"contributes": {
"configurationDefaults": {
"[scala]": {
"editor.suggestSelection": "first"
}
},
"viewsContainers": {
"activitybar": [
{
"id": "metals-explorer",
"title": "Metals",
"icon": "images/scalameta.svg"
}
]
},
"views": {
"metals-explorer": [
{
"id": "metalsBuild",
"name": "Build"
},
{
"id": "metalsCompile",
"name": "Compile"
},
{
"id": "metalsHelp",
"name": "Help and feedback"
}
]
},
"configuration": {
"title": "Metals",
"properties": {
"metals.serverVersion": {
"type": "string",
"default": "0.7.0",
"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": "string",
"markdownDescription": "Optional space separated system 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.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` script.\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 relative to the workspace root directory and use forward slashes `/` for file separators (even on Windows)."
},
"metals.customRepositories": {
"type": "string",
"markdownDescription": "Optional space separated 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 (|)."
}
}
},
"commands": [
{
"command": "metals.reveal-active-file",
"category": "Metals",
"title": "Reveal Active File in Side Bar",
"icon": {
"light": "icons/focus-light.svg",
"dark": "icons/focus-dark.svg"
}
},
{
"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 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.doctor-run",
"category": "Metals",
"title": "Run doctor"
}
],
"menus": {
"view/title": [
{
"command": "metals.reveal-active-file",
"group": "navigation",
"when": "view == metalsBuild"
}
],
"commandPalette": [
{
"command": "metals.restartServer",
"when": "metals:enabled"
},
{
"command": "metals.build-import",
"when": "metals:enabled"
},
{
"command": "metals.build-connect",
"when": "metals:enabled"
},
{
"command": "metals.sources-scan",
"when": "metals:enabled"
},
{
"command": "metals.compile-cascade",
"when": "metals:enabled"
},
{
"command": "metals.compile-cancel",
"when": "metals:enabled"
},
{
"command": "metals.doctor-run",
"when": "metals:enabled"
}
]
}
},
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "yarn compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "yarn compile && node ./node_modules/vscode/bin/test",
"build": "vsce package --yarn",
"vscode:publish": "vsce publish --yarn"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^8.10.25",
"@types/semver": "^5.5.0",
"@types/shell-quote": "^1.6.1",
"github-changes": "^1.1.2",
"typescript": "^3.2.2",
"vsce": "^1.54.0"
},
"dependencies": {
"locate-java-home": "^1.1.2",
"promisify-child-process": "3.1.0",
"semver": "^5.6.0",
"shell-quote": "^1.6.1",
"vscode": "^1.1.34",
"vscode-languageclient": "^5.1.0"
},
"extensionDependencies": [
"scala-lang.scala"
]
}