diff options
| author | Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> | 2021-12-31 16:11:17 +0100 |
|---|---|---|
| committer | Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> | 2021-12-31 16:29:08 +0100 |
| commit | df6fa50f92af1232df5c044b8fe223817588ec8b (patch) | |
| tree | 63ec4a2200a1d693a717a4daa3683fe87a0528b9 /editors/code | |
| parent | 0435463439471a81477ccdc0313f312abb14331e (diff) | |
| download | rust-df6fa50f92af1232df5c044b8fe223817588ec8b.tar.gz rust-df6fa50f92af1232df5c044b8fe223817588ec8b.zip | |
feat(diagnostics): add new config to fill default expression
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Diffstat (limited to 'editors/code')
| -rw-r--r-- | editors/code/package.json | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 550b28e1cdb..cbe9bf54427 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -378,6 +378,19 @@ "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`" }, "$generated-start": {}, + "rust-analyzer.assist.exprFillDefault": { + "markdownDescription": "How assists will fill missing elements in an expression.", + "default": "todo", + "type": "string", + "enum": [ + "todo", + "defaultImpl" + ], + "enumDescriptions": [ + "Fill missing elements with 'todo' macro", + "Fill missing elements with Default::default()" + ] + }, "rust-analyzer.assist.importGranularity": { "markdownDescription": "How imports should be grouped into use statements.", "default": "crate", @@ -1494,4 +1507,4 @@ ] } } -} +} \ No newline at end of file |
