about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/docs
diff options
context:
space:
mode:
authorLukas Wirth <me@lukaswirth.dev>2025-06-17 08:20:02 +0000
committerGitHub <noreply@github.com>2025-06-17 08:20:02 +0000
commit3b9ef2889ad6caa440fa753560cd43d733cf3435 (patch)
treeb7d65d764332dd87bcd37ce4400b2aeb63e4c0dc /src/tools/rust-analyzer/docs
parente4e01f6352e234f1bbee0b4fa066e4228586a485 (diff)
parent2a473e5aa6c8869dfef3891e32c77085338e4f46 (diff)
Merge pull request #19939 from ChayimFriedman2/fill-arms-self
feat: In "Fill match arms", allow users to prefer `Self` to the enum name when possible
Diffstat (limited to 'src/tools/rust-analyzer/docs')
-rw-r--r--src/tools/rust-analyzer/docs/book/src/configuration_generated.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/docs/book/src/configuration_generated.md b/src/tools/rust-analyzer/docs/book/src/configuration_generated.md
index 521edb068a0..119b60725a9 100644
--- a/src/tools/rust-analyzer/docs/book/src/configuration_generated.md
+++ b/src/tools/rust-analyzer/docs/book/src/configuration_generated.md
@@ -13,6 +13,13 @@ Default: `"todo"`
 Placeholder expression to use for missing expressions in assists.
 
 
+## rust-analyzer.assist.preferSelf {#assist.preferSelf}
+
+Default: `false`
+
+When inserting a type (e.g. in "fill match arms" assist), prefer to use `Self` over the type name where possible.
+
+
 ## rust-analyzer.assist.termSearch.borrowcheck {#assist.termSearch.borrowcheck}
 
 Default: `true`