You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/rust-analyzer/src/config.rs
+2-39Lines changed: 2 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -442,50 +442,13 @@ config_data! {
442
442
completion_autoimport_enable:bool = true,
443
443
/// A list of full paths to traits to exclude from flyimport.
444
444
///
445
-
/// Traits in this list won't be suggested to be imported by flyimport for their methods. Methods from them won't be available in flyimport completion. They will still be available if in scope.
446
-
///
447
-
/// Note that the trait themselves can still be suggested by flyimport.
445
+
/// Traits in this list won't have their methods suggested in completions unless the trait
446
+
/// is in scope.
448
447
///
449
448
/// This setting also inherits `#rust-analyzer.completion.excludeTraits#`.
Copy file name to clipboardExpand all lines: docs/user/generated_config.adoc
+3-40Lines changed: 3 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -293,53 +293,16 @@ Default:
293
293
----
294
294
[
295
295
"core::borrow::Borrow",
296
-
"core::borrow::BorrowMut",
297
-
"core::cmp::PartialEq",
298
-
"core::ops::Add",
299
-
"core::ops::AddAssign",
300
-
"core::ops::BitAnd",
301
-
"core::ops::BitAndAssign",
302
-
"core::ops::BitOr",
303
-
"core::ops::BitOrAssign",
304
-
"core::ops::BitXor",
305
-
"core::ops::BitXorAssign",
306
-
"core::ops::Div",
307
-
"core::ops::DivAssign",
308
-
"core::ops::Mul",
309
-
"core::ops::MulAssign",
310
-
"core::ops::Rem",
311
-
"core::ops::RemAssign",
312
-
"core::ops::Shl",
313
-
"core::ops::ShlAssign",
314
-
"core::ops::Shr",
315
-
"core::ops::ShrAssign",
316
-
"core::ops::Sub",
317
-
"core::ops::SubAssign",
318
-
"core::ops::Neg",
319
-
"core::ops::Not",
320
-
"core::ops::Index",
321
-
"core::ops::IndexMut",
322
-
"core::ops::Deref",
323
-
"core::ops::DerefMut"
296
+
"core::borrow::BorrowMut"
324
297
]
325
298
----
326
299
A list of full paths to traits to exclude from flyimport.
327
300
328
-
Traits in this list won't be suggested to be imported by flyimport for their methods. Methods from them won't be available in flyimport completion. They will still be available if in scope.
329
-
330
-
Note that the trait themselves can still be suggested by flyimport.
301
+
Traits in this list won't have their methods suggested in completions unless the trait
302
+
is in scope.
331
303
332
304
This setting also inherits `#rust-analyzer.completion.excludeTraits#`.
"markdownDescription": "A list of full paths to traits to exclude from flyimport.\n\nTraits in this list won't be suggested to be imported by flyimport for their methods. Methods from them won't be available in flyimport completion. They will still be available if in scope.\n\nNote that the trait themselves can still be suggested by flyimport.\n\nThis setting also inherits `#rust-analyzer.completion.excludeTraits#`.\n\nThis setting defaults to:\n\n - [`core::borrow::Borrow`](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html)\n - [`core::borrow::BorrowMut`](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html)\n - [`core::cmp::PartialEq`](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html)\n - All operator traits (in [`core::ops`](https://doc.rust-lang.org/nightly/core/ops))\n\nNote that if you override this setting, those traits won't be automatically inserted, so you may want to insert them manually.",
1146
+
"markdownDescription": "A list of full paths to traits to exclude from flyimport.\n\nTraits in this list won't have their methods suggested in completions unless the trait\nis in scope.\n\nThis setting also inherits `#rust-analyzer.completion.excludeTraits#`.",
0 commit comments