diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-06-06 16:34:53 +0300 |
|---|---|---|
| committer | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-06-06 16:34:53 +0300 |
| commit | 2a473e5aa6c8869dfef3891e32c77085338e4f46 (patch) | |
| tree | 68fbc8c23303bafdb74b69e1af1d15db55a8a4d9 /src/tools/rust-analyzer/docs | |
| parent | 337c2d993b00cf727be28e6e1435fbbca17c9f2a (diff) | |
In "Fill match arms", allow users to prefer `Self` to the enum name when possible
But default to not to. I chose to have a more generic config name because maybe other assists could also use the same approach.
Diffstat (limited to 'src/tools/rust-analyzer/docs')
| -rw-r--r-- | src/tools/rust-analyzer/docs/book/src/configuration_generated.md | 7 |
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 0e07dadfb7c..7c1aafcdfa9 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` |
