diff options
| author | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-04-06 16:14:38 +0330 |
|---|---|---|
| committer | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-04-10 23:04:34 +0330 |
| commit | 59b6f2d9f2fe40b0176b64bf295562d0beaabc3e (patch) | |
| tree | 439783fc580c779b5a503ed63125046f9d717b4f /editors/code/package.json | |
| parent | 51d5862caf428c9e160ccf28d684f0a33faccd7d (diff) | |
| download | rust-59b6f2d9f2fe40b0176b64bf295562d0beaabc3e.tar.gz rust-59b6f2d9f2fe40b0176b64bf295562d0beaabc3e.zip | |
Compute closure captures
Diffstat (limited to 'editors/code/package.json')
| -rw-r--r-- | editors/code/package.json | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 81fa97269a9..087fd1296b3 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -1028,6 +1028,23 @@ "Only show type hints for return types of closures with blocks." ] }, + "rust-analyzer.inlayHints.closureStyle": { + "markdownDescription": "Closure notation in type and chaining inaly hints.", + "default": "impl_fn", + "type": "string", + "enum": [ + "impl_fn", + "rust_analyzer", + "with_id", + "hide" + ], + "enumDescriptions": [ + "`impl_fn`: `impl FnMut(i32, u64) -> i8`", + "`rust_analyzer`: `|i32, u64| -> i8`", + "`with_id`: `{closure#14352}`, where that id is the unique number of the closure in r-a internals", + "`hide`: Shows `...` for every closure type" + ] + }, "rust-analyzer.inlayHints.discriminantHints.enable": { "markdownDescription": "Whether to show enum variant discriminant hints.", "default": "never", |
