forked from rust-lang/vscode-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
392 lines (392 loc) · 14.3 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
{
"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.4.10",
"publisher": "rust-lang",
"icon": "rust-icon.png",
"galleryBanner": {
"color": "#336356",
"theme": "dark"
},
"engines": {
"vscode": "^1.24.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",
"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'",
"check:version": "node cmd/check-version.js",
"postinstall": "node ./node_modules/vscode/bin/install",
"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/mocha": "^2.2.43",
"@types/node": "^7.0.56",
"mocha": "^5.2.0",
"tslint": "^5.7.0",
"typescript": "^2.5.2",
"vsce": "^1.42.0",
"vscode": "^1.1.21"
},
"contributes": {
"languages": [
{
"id": "rust",
"extensions": [
".rs"
],
"configuration": "./language-configuration.json"
}
],
"snippets": [
{
"language": "rust",
"path": "./snippets/rust.json"
}
],
"commands": [
{
"command": "rls.findImpls",
"title": "Find Implementations",
"description": "Show impl blocks for trait, struct, or enum",
"category": "Rust"
},
{
"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"
}
],
"menus": {
"editor/context": [
{
"command": "rls.findImpls",
"when": "editorLangId == rust && editorHasReferenceProvider",
"group": "navigation@4"
}
]
},
"taskDefinitions": [
{
"type": "cargo",
"required": [
"command"
],
"properties": {
"label": {
"type": "string"
},
"command": {
"type": "string"
},
"args": {
"type": "array"
},
"env": {
"type": "object"
}
}
}
],
"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"
},
"rust-client.rlsPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to rls executable (only required for rls developers)"
},
"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.channel": {
"type": [
"string",
null
],
"enum": [
"stable",
"beta",
"nightly"
],
"default": null,
"description": "Rust channel to install RLS from. By default it will use the same channel as your currently open project"
},
"rust-client.rls-name": {
"type": "string",
"default": "rls-preview",
"description": "Name of the RLS rustup component."
},
"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"
},
"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.goto_def_racer_fallback": {
"type": "boolean",
"default": false,
"description": "Use racer as a fallback for goto def.",
"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.",
"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"
}
}
}
}
}