forked from rust-lang/vscode-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
433 lines (433 loc) · 17.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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
{
"name": "rust",
"displayName": "Rust (rls)",
"description": "Rust language support - code completion, Intellisense, refactoring, reformatting, errors, snippets. A client for the Rust Language Server, built by the RLS team.",
"version": "0.6.3",
"publisher": "rust-lang",
"icon": "rust-icon.png",
"galleryBanner": {
"color": "#336356",
"theme": "dark"
},
"engines": {
"vscode": "^1.31.0"
},
"license": "(MIT OR Apache-2.0)",
"repository": {
"type": "git",
"url": "https://github.com/rust-lang-nursery/rls-vscode"
},
"bugs": {
"url": "https://github.com/rust-lang-nursery/rls-vscode/issues"
},
"categories": [
"Programming Languages",
"Linters",
"Snippets",
"Formatters",
"Other"
],
"keywords": [
"rust",
"rust-lang",
"rls",
"multi-root ready"
],
"preview": true,
"activationEvents": [
"onLanguage:rust",
"workspaceContains:Cargo.toml"
],
"main": "./out/src/extension.js",
"scripts": {
"vscode:prepublish": "npm run check:version && npm run lint && npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "tslint --config ./tslint.json './src/**/*.ts'",
"test": "node ./out/test/runTest.js",
"prettier": "prettier **/*.ts",
"check:version": "node cmd/check-version.js",
"installDevExtension": "npm install && ./node_modules/.bin/vsce package -o ./out/rls-vscode-dev.vsix && code --install-extension ./out/rls-vscode-dev.vsix"
},
"dependencies": {
"vscode-languageclient": "^4.3.0"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "~10.1.0",
"@types/vscode": "^1.31.0",
"glob": "^7.1.4",
"mocha": "^6.1.4",
"prettier": "^1.16.4",
"tslint": "^5.14.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.0.0",
"vsce": "^1.63.0",
"vscode-test": "^0.4.3"
},
"contributes": {
"languages": [
{
"id": "rust",
"extensions": [
".rs"
],
"configuration": "./language-configuration.json"
}
],
"snippets": [
{
"language": "rust",
"path": "./snippets/rust.json"
}
],
"commands": [
{
"command": "rls.update",
"title": "Update the RLS",
"description": "Use Rustup to update Rust, the RLS, and required data",
"category": "Rust"
},
{
"command": "rls.restart",
"title": "Restart the RLS",
"description": "Sometimes, it's just best to try turning it off and on again",
"category": "Rust"
}
],
"taskDefinitions": [
{
"type": "cargo",
"properties": {
"subcommand": {
"type": "string"
}
},
"required": [
"subcommand"
]
}
],
"problemMatchers": [
{
"name": "rustc",
"owner": "rust",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": [
{
"regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
"severity": 1,
"message": 4,
"code": 3
},
{
"regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
"file": 2,
"line": 3,
"column": 4
},
{
"regexp": "^.*$"
},
{
"regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
"file": 2,
"line": 3,
"column": 4
}
]
}
],
"configuration": {
"type": "object",
"title": "Rust configuration",
"properties": {
"rust-client.logToFile": {
"type": "boolean",
"default": false,
"description": "When set to true, RLS stderr is logged to a file at workspace root level. Requires reloading extension after change."
},
"rust-client.rustupPath": {
"type": "string",
"default": "rustup",
"description": "Path to rustup executable. Ignored if rustup is disabled."
},
"rust-client.useWSL": {
"type": "boolean",
"default": false,
"description": "When set to true, RLS is started within Windows Subsystem for Linux."
},
"rust-client.rlsPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Override RLS path. Only required for RLS developers. If you set this and use rustup, you should also set `rust-client.channel` to ensure your RLS sees the right libraries. If you don't use rustup, make sure to set `rust-client.disableRustup`."
},
"rust-client.revealOutputChannelOn": {
"type": "string",
"enum": [
"info",
"warn",
"error",
"never"
],
"default": "never",
"description": "Specifies message severity on which the output channel will be revealed. Requires reloading extension after change."
},
"rust-client.updateOnStartup": {
"type": "boolean",
"default": false,
"description": "Update the RLS whenever the extension starts up."
},
"rust-client.disableRustup": {
"type": "boolean",
"default": false,
"description": "Disable usage of rustup and use rustc/rls from PATH."
},
"rust-client.channel": {
"type": [
"string",
"null"
],
"enum": [
"stable",
"beta",
"nightly"
],
"default": null,
"description": "Rust channel to invoke rustup with. Ignored if rustup is disabled. By default, uses the same channel as your currently open project."
},
"rust-client.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the Rust language server.",
"scope": "window"
},
"rust-client.nestedMultiRootConfigInOutermost": {
"type": "boolean",
"default": true,
"description": "If one root workspace folder is nested in another root folder, look for the Rust config in the outermost root."
},
"rust-client.enableMultiProjectSetup": {
"type": "boolean",
"default": false,
"description": "Allow multiple projects in the same folder, along with remove the constraint that the cargo.toml must be located at the root. (Experimental: might not work for certain setups)"
},
"rust.sysroot": {
"type": [
"string",
"null"
],
"default": null,
"description": "--sysroot",
"scope": "resource"
},
"rust.target": {
"type": [
"string",
"null"
],
"default": null,
"description": "--target",
"scope": "resource"
},
"rust.rustflags": {
"type": [
"string",
"null"
],
"default": null,
"description": "Flags added to RUSTFLAGS.",
"scope": "resource"
},
"rust.clear_env_rust_log": {
"type": "boolean",
"default": true,
"description": "Clear the RUST_LOG environment variable before running rustc or cargo.",
"scope": "resource"
},
"rust.build_lib": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Specify to run analysis as if running `cargo check --lib`. Use `null` to auto-detect. (unstable)",
"scope": "resource"
},
"rust.build_bin": {
"type": [
"string",
"null"
],
"default": null,
"description": "Specify to run analysis as if running `cargo check --bin <name>`. Use `null` to auto-detect. (unstable)",
"scope": "resource"
},
"rust.cfg_test": {
"type": "boolean",
"default": false,
"description": "Build cfg(test) code. (unstable)",
"scope": "resource"
},
"rust.unstable_features": {
"type": "boolean",
"default": false,
"description": "Enable unstable features.",
"scope": "resource"
},
"rust.wait_to_build": {
"type": "number",
"default": 1500,
"description": "Time in milliseconds between receiving a change notification and starting build.",
"scope": "resource"
},
"rust.show_warnings": {
"type": "boolean",
"default": true,
"description": "Show warnings.",
"scope": "resource"
},
"rust.use_crate_blacklist": {
"type": "boolean",
"default": true,
"description": "Don't index crates on the crate blacklist.",
"scope": "resource",
"deprecationMessage": "Use `rust.crate_blacklist` instead"
},
"rust.crate_blacklist": {
"type": [
"array",
"null"
],
"default": [
"cocoa",
"gleam",
"glium",
"idna",
"libc",
"openssl",
"rustc_serialize",
"serde",
"serde_json",
"typenum",
"unicode_normalization",
"unicode_segmentation",
"winapi"
],
"description": "Overrides the default list of packages for which analysis is skipped.\nAvailable since RLS 1.38",
"scope": "resource"
},
"rust.build_on_save": {
"type": "boolean",
"default": false,
"description": "Only index the project when a file is saved and not on change.",
"scope": "resource"
},
"rust.features": {
"type": "array",
"default": [],
"description": "A list of Cargo features to enable.",
"scope": "resource"
},
"rust.all_features": {
"type": "boolean",
"default": false,
"description": "Enable all Cargo features.",
"scope": "resource"
},
"rust.no_default_features": {
"type": "boolean",
"default": false,
"description": "Do not enable default Cargo features.",
"scope": "resource"
},
"rust.racer_completion": {
"type": "boolean",
"default": true,
"description": "Enables code completion using racer.",
"scope": "resource"
},
"rust.clippy_preference": {
"type": "string",
"enum": [
"on",
"opt-in",
"off"
],
"default": "opt-in",
"description": "Controls eagerness of clippy diagnostics when available. Valid values are (case-insensitive):\n - \"off\": Disable clippy lints.\n - \"on\": Display the same diagnostics as command-line clippy invoked with no arguments (`clippy::all` unless overridden).\n - \"opt-in\": Only display the lints explicitly enabled in the code. Start by adding `#![warn(clippy::all)]` to the root of each crate you want linted.\nYou need to install clippy via rustup if you haven't already.",
"scope": "resource"
},
"rust.jobs": {
"type": [
"number",
"null"
],
"default": null,
"description": "Number of Cargo jobs to be run in parallel.",
"scope": "resource"
},
"rust.all_targets": {
"type": "boolean",
"default": true,
"description": "Checks the project as if you were running cargo check --all-targets (I.e., check all targets and integration tests too).",
"scope": "resource"
},
"rust.target_dir": {
"type": [
"string",
"null"
],
"default": null,
"description": "When specified, it places the generated analysis files at the specified target directory. By default it is placed target/rls directory.",
"scope": "resource"
},
"rust.rustfmt_path": {
"type": [
"string",
"null"
],
"default": null,
"description": "When specified, RLS will use the Rustfmt pointed at the path instead of the bundled one",
"scope": "resource"
},
"rust.build_command": {
"type": [
"string",
"null"
],
"default": null,
"description": "EXPERIMENTAL (requires `unstable_features`)\nIf set, executes a given program responsible for rebuilding save-analysis to be loaded by the RLS. The program given should output a list of resulting .json files on stdout. \nImplies `rust.build_on_save`: true.",
"scope": "resource"
},
"rust.full_docs": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Instructs cargo to enable full documentation extraction during save-analysis while building the crate.",
"scope": "resource"
},
"rust.show_hover_context": {
"type": "boolean",
"default": true,
"description": "Show additional context in hover tooltips when available. This is often the type local variable declaration.",
"scope": "resource"
}
}
}
}
}