Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/rust-analyzer/src/config.rs6
-rw-r--r--docs/book/src/configuration_generated.md6
-rw-r--r--editors/code/package.json2
3 files changed, 11 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 76a4a26af6..05e1b832cd 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -762,7 +762,11 @@ config_data! {
/// though Cargo might be the eventual consumer.
vfs_extraIncludes: Vec<String> = vec![],
- /// Exclude imports from symbol search.
+ /// Exclude all imports from workspace symbol search.
+ ///
+ /// In addition to regular imports (which are always excluded),
+ /// this option removes public imports (better known as re-exports)
+ /// and removes imports that rename the imported symbol.
workspace_symbol_search_excludeImports: bool = false,
/// Workspace symbol search kind.
workspace_symbol_search_kind: WorkspaceSymbolSearchKindDef = WorkspaceSymbolSearchKindDef::OnlyTypes,
diff --git a/docs/book/src/configuration_generated.md b/docs/book/src/configuration_generated.md
index 54a624d25a..9404b1454a 100644
--- a/docs/book/src/configuration_generated.md
+++ b/docs/book/src/configuration_generated.md
@@ -1542,7 +1542,11 @@ https://github.com/facebook/buck2/tree/main/integrations/rust-project.
Default: `false`
-Exclude imports from symbol search.
+Exclude all imports from workspace symbol search.
+
+In addition to regular imports (which are always excluded),
+this option removes public imports (better known as re-exports)
+and removes imports that rename the imported symbol.
## rust-analyzer.workspace.symbol.search.kind {#workspace.symbol.search.kind}
diff --git a/editors/code/package.json b/editors/code/package.json
index fb41225ca0..26a21c1468 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -2905,7 +2905,7 @@
"title": "workspace",
"properties": {
"rust-analyzer.workspace.symbol.search.excludeImports": {
- "markdownDescription": "Exclude imports from symbol search.",
+ "markdownDescription": "Exclude all imports from workspace symbol search.\n\nIn addition to regular imports (which are always excluded),\nthis option removes public imports (better known as re-exports)\nand removes imports that rename the imported symbol.",
"default": false,
"type": "boolean"
}