Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/rust-analyzer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ config_data! {
/// For traits the type "methods" can be used to only exclude the methods but not the trait
/// itself.
///
/// For modules the type "subItems" can be used to only exclude the all items in it but not the module
/// For modules the type "sub_items" can be used to only exclude the all items in it but not the module
/// itself. This does not include items defined in nested modules.
///
/// This setting also inherits `#rust-analyzer.completion.excludeTraits#`.
Expand Down Expand Up @@ -4135,7 +4135,7 @@ fn field_props(field: &str, ty: &str, doc: &[&str], default: &str) -> serde_json
},
"type": {
"type": "string",
"enum": ["always", "methods", "subItems"],
"enum": ["always", "methods", "sub_items"],
"enumDescriptions": [
"Do not show this item or its methods (if it is a trait) in auto-import completions.",
"Do not show this trait's methods in auto-import completions.",
Expand Down
2 changes: 1 addition & 1 deletion docs/book/src/configuration_generated.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ verbose form `{ "path": "path::to::item", type: "always" }`.
For traits the type "methods" can be used to only exclude the methods but not the trait
itself.

For modules the type "subItems" can be used to only exclude the all items in it but not the module
For modules the type "sub_items" can be used to only exclude the all items in it but not the module
itself. This does not include items defined in nested modules.

This setting also inherits `#rust-analyzer.completion.excludeTraits#`.
Expand Down
4 changes: 2 additions & 2 deletions editors/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@
"title": "Completion",
"properties": {
"rust-analyzer.completion.autoimport.exclude": {
"markdownDescription": "A list of full paths to items to exclude from auto-importing completions.\n\nTraits in this list won't have their methods suggested in completions unless the trait\nis in scope.\n\nYou can either specify a string path which defaults to type \"always\" or use the more\nverbose form `{ \"path\": \"path::to::item\", type: \"always\" }`.\n\nFor traits the type \"methods\" can be used to only exclude the methods but not the trait\nitself.\n\nFor modules the type \"subItems\" can be used to only exclude the all items in it but not the module\nitself. This does not include items defined in nested modules.\n\nThis setting also inherits `#rust-analyzer.completion.excludeTraits#`.",
"markdownDescription": "A list of full paths to items to exclude from auto-importing completions.\n\nTraits in this list won't have their methods suggested in completions unless the trait\nis in scope.\n\nYou can either specify a string path which defaults to type \"always\" or use the more\nverbose form `{ \"path\": \"path::to::item\", type: \"always\" }`.\n\nFor traits the type \"methods\" can be used to only exclude the methods but not the trait\nitself.\n\nFor modules the type \"sub_items\" can be used to only exclude the all items in it but not the module\nitself. This does not include items defined in nested modules.\n\nThis setting also inherits `#rust-analyzer.completion.excludeTraits#`.",
"default": [
{
"path": "core::borrow::Borrow",
Expand Down Expand Up @@ -1356,7 +1356,7 @@
"enum": [
"always",
"methods",
"subItems"
"sub_items"
],
"enumDescriptions": [
"Do not show this item or its methods (if it is a trait) in auto-import completions.",
Expand Down
Loading