diff options
| author | Lukas Wirth <me@lukaswirth.dev> | 2025-06-17 08:20:02 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-17 08:20:02 +0000 |
| commit | 3b9ef2889ad6caa440fa753560cd43d733cf3435 (patch) | |
| tree | b7d65d764332dd87bcd37ce4400b2aeb63e4c0dc /src/tools/rust-analyzer/editors/code | |
| parent | e4e01f6352e234f1bbee0b4fa066e4228586a485 (diff) | |
| parent | 2a473e5aa6c8869dfef3891e32c77085338e4f46 (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/editors/code')
| -rw-r--r-- | src/tools/rust-analyzer/editors/code/package.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json index 0b86332d1a3..acac54e53a6 100644 --- a/src/tools/rust-analyzer/editors/code/package.json +++ b/src/tools/rust-analyzer/editors/code/package.json @@ -683,6 +683,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": { "rust-analyzer.assist.termSearch.borrowcheck": { "markdownDescription": "Enable borrow checking for term search code assists. If set to false, also there will be more suggestions, but some of them may not borrow-check.", "default": true, |
