@@ -285,6 +285,35 @@ In `match` arms it completes a comma instead.
285
285
--
286
286
Toggles the additional completions that automatically add imports when completed.
287
287
Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.
288
+ --
289
+ [[rust-analyzer.completion.autoimport.exclude]]rust-analyzer.completion.autoimport.exclude::
290
+ +
291
+ --
292
+ Default:
293
+ ----
294
+ [
295
+ {
296
+ "path": "core::borrow::Borrow",
297
+ "type": "methods"
298
+ },
299
+ {
300
+ "path": "core::borrow::BorrowMut",
301
+ "type": "methods"
302
+ }
303
+ ]
304
+ ----
305
+ A list of full paths to items to exclude from auto-importing completions.
306
+
307
+ Traits in this list won't have their methods suggested in completions unless the trait
308
+ is in scope.
309
+
310
+ You can either specify a string path which defaults to type "always" or use the more verbose
311
+ form `{ "path": "path::to::item", type: "always" }` .
312
+
313
+ For traits the type "methods" can be used to only exclude the methods but not the trait itself.
314
+
315
+ This setting also inherits `#rust-analyzer.completion.excludeTraits#` .
316
+
288
317
--
289
318
[[rust-analyzer.completion.autoself.enable]]rust-analyzer.completion.autoself.enable (default: `true` )::
290
319
+
@@ -297,6 +326,15 @@ with `self` prefixed to them when inside a method.
297
326
--
298
327
Whether to add parenthesis and argument snippets when completing function.
299
328
--
329
+ [[rust-analyzer.completion.excludeTraits]]rust-analyzer.completion.excludeTraits (default: `[]` )::
330
+ +
331
+ --
332
+ A list of full paths to traits whose methods to exclude from completion.
333
+
334
+ Methods from these traits won't be completed, even if the trait is in scope. However, they will still be suggested on expressions whose type is `dyn Trait` , `impl Trait` or `T where T: Trait` .
335
+
336
+ Note that the trait themselves can still be completed.
337
+ --
300
338
[[rust-analyzer.completion.fullFunctionSignatures.enable]]rust-analyzer.completion.fullFunctionSignatures.enable (default: `false` )::
301
339
+
302
340
--
@@ -497,6 +535,12 @@ Whether to show `References` action. Only applies when
497
535
Whether to show `Run` action. Only applies when
498
536
`#rust-analyzer.hover.actions.enable#` is set.
499
537
--
538
+ [[rust-analyzer.hover.actions.updateTest.enable]]rust-analyzer.hover.actions.updateTest.enable (default: `true` )::
539
+ +
540
+ --
541
+ Whether to show `Update Test` action. Only applies when
542
+ `#rust-analyzer.hover.actions.enable#` and `#rust-analyzer.hover.actions.run.enable#` are set.
543
+ --
500
544
[[rust-analyzer.hover.documentation.enable]]rust-analyzer.hover.documentation.enable (default: `true` )::
501
545
+
502
546
--
@@ -808,6 +852,12 @@ Only applies when `#rust-analyzer.lens.enable#` is set.
808
852
Whether to show `Run` lens. Only applies when
809
853
`#rust-analyzer.lens.enable#` is set.
810
854
--
855
+ [[rust-analyzer.lens.updateTest.enable]]rust-analyzer.lens.updateTest.enable (default: `true` )::
856
+ +
857
+ --
858
+ Whether to show `Update Test` lens. Only applies when
859
+ `#rust-analyzer.lens.enable#` and `#rust-analyzer.lens.run.enable#` are set.
860
+ --
811
861
[[rust-analyzer.linkedProjects]]rust-analyzer.linkedProjects (default: `[]` )::
812
862
+
813
863
--
0 commit comments