This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
/
package.json
588 lines (588 loc) · 22.7 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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
{
"name": "rust",
"displayName": "Rust (deprecated)",
"description": "Rust for Visual Studio Code (powered by Rust Language Server/Rust Analyzer). Provides lints, code completion and navigation, formatting and more.",
"version": "0.7.9",
"publisher": "rust-lang",
"icon": "icon.png",
"galleryBanner": {
"color": "#336356",
"theme": "dark"
},
"engines": {
"vscode": "^1.43.0"
},
"license": "(MIT OR Apache-2.0)",
"repository": {
"type": "git",
"url": "https://github.com/rust-lang/vscode-rust"
},
"bugs": {
"url": "https://github.com/rust-lang/vscode-rust/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": "eslint --ext ts src",
"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": {
"node-fetch": "^2.6.1",
"vscode-languageclient": "^6.0.0"
},
"devDependencies": {
"@types/chai": "^4.2.11",
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "^12.8.1",
"@types/node-fetch": "^2.5.7",
"@types/vscode": "^1.43.0",
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.9.1",
"chai": "^4.2.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"glob": "^7.1.4",
"mocha": "^6.2.3",
"prettier": "^1.19.1",
"typescript": "^3.8.3",
"vsce": "^1.63.0",
"vscode-test": "^1.3.0"
},
"contributes": {
"languages": [
{
"id": "rust",
"extensions": [
".rs"
],
"configuration": "./language-configuration.json"
}
],
"snippets": [
{
"language": "rust",
"path": "./snippets/rust.json"
}
],
"commands": [
{
"command": "rls.update",
"title": "Update the current Rust toolchain",
"description": "Use Rustup to the current Rust toolchain, along with its components",
"category": "Rust"
},
{
"command": "rls.restart",
"title": "Restart the Rust server",
"description": "Sometimes, it's just best to try turning it off and on again",
"category": "Rust"
},
{
"command": "rls.start",
"title": "Start the Rust server",
"description": "Start the Rust server (when rust-client.autoStartRls is false or when manually stopped)",
"category": "Rust"
},
{
"command": "rls.stop",
"title": "Stop the Rust server",
"description": "Stop the Rust server for a workspace until manually started 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",
"properties": {
"rust-client.engine": {
"type": "string",
"enum": [
"rls",
"rust-analyzer"
],
"enumDescriptions": [
"Use the Rust Language Server (RLS)",
"Use the rust-analyzer language server (NOTE: not fully supported yet)"
],
"default": "rls",
"description": "The underlying LSP server used to provide IDE support for Rust projects.",
"scope": "window"
},
"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.",
"scope": "machine"
},
"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`.",
"scope": "machine"
},
"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 Rust toolchain and its required components whenever the extension starts up."
},
"rust-client.autoStartRls": {
"type": "boolean",
"default": true,
"description": "Start RLS automatically when opening a file or project.",
"scope": "resource"
},
"rust-client.disableRustup": {
"type": "boolean",
"default": false,
"description": "Disable usage of rustup and use rustc/rls/rust-analyzer from PATH."
},
"rust-client.channel": {
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"default",
"stable",
"beta",
"nightly"
],
"enumDescriptions": [
"Uses the same channel as your currently open project",
"Explicitly use the `stable` channel",
"Explicitly use the `beta` channel",
"Explicitly use the `nightly` channel"
]
}
],
"default": "default",
"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.enableMultiProjectSetup": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Allow multiple projects in the same folder, along with removing 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",
"null"
],
"default": null,
"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.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"
},
"rust.rust-analyzer": {
"type": "object",
"default": {},
"description": "Settings passed down to rust-analyzer server",
"scope": "resource"
},
"rust.rust-analyzer.releaseTag": {
"type": "string",
"default": "nightly",
"description": "Which binary release to download and use"
},
"rust.rust-analyzer.path": {
"type": [
"string",
"null"
],
"default": null,
"description": "When specified, uses the rust-analyzer binary at a given path"
},
"rust.ignore_deprecation_warning": {
"type": "boolean",
"default": false,
"description": "Whether to surpress the deprecation notification on start up."
}
}
},
"semanticTokenTypes": [
{
"id": "attribute",
"description": "Style for attributes"
},
{
"id": "builtinType",
"description": "Style for builtin types",
"superType": "type"
},
{
"id": "lifetime",
"description": "Style for lifetimes"
},
{
"id": "typeAlias",
"description": "Style for type aliases",
"superType": "type"
},
{
"id": "union",
"description": "Style for C-style untagged unions",
"superType": "type"
},
{
"id": "unresolvedReference",
"description": "Style for names which can not be resolved due to compilation errors"
},
{
"id": "formatSpecifier",
"description": "Style for {} placeholders in format strings"
}
],
"semanticTokenModifiers": [
{
"id": "constant",
"description": "Style for compile-time constants"
},
{
"id": "controlFlow",
"description": "Style for control flow keywords"
},
{
"id": "mutable",
"description": "Style for mutable bindings"
},
{
"id": "unsafe",
"description": "Style for unsafe operations"
}
],
"semanticTokenScopes": [
{
"language": "rust",
"scopes": {
"attribute": [
"meta.attribute.rust"
],
"builtinType": [
"support.type.primitive.rust"
],
"lifetime": [
"storage.modifier.lifetime.rust"
],
"typeAlias": [
"entity.name.type.typeAlias.rust"
],
"union": [
"entity.name.type.union.rust"
],
"struct": [
"entity.name.type.struct.rust"
],
"keyword": [
"keyword.other.rust"
],
"keyword.controlFlow": [
"keyword.control.rust"
],
"variable.constant": [
"variable.other.constant.rust"
],
"formatSpecifier": [
"punctuation.section.embedded.rust"
],
"*.mutable": [
"markup.underline"
]
}
}
]
}
}