mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
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.
This commit is contained in:
parent
4fd1cdb3e3
commit
25a7b2480e
7 changed files with 227 additions and 29 deletions
|
@ -680,6 +680,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "assist",
|
||||
"properties": {
|
||||
"rust-analyzer.assist.preferSelf": {
|
||||
"markdownDescription": "When inserting a type (e.g. in \"fill match arms\" assist), prefer to use `Self` over the type name where possible.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "assist",
|
||||
"properties": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue