mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-20 02:20:21 +00:00
Auto merge of #14742 - Veykril:closure-capture-inlays, r=Veykril
feat: Closure capture inlay hints I opted for a fictional `move(foo, &bar, &mut qux)` syntax here, disabled by default as these are not correct rust syntax and hence could cause confusion. 
This commit is contained in:
commit
d3ce333ec8
11 changed files with 278 additions and 37 deletions
|
@ -1037,6 +1037,11 @@
|
|||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"rust-analyzer.inlayHints.closureCaptureHints.enable": {
|
||||
"markdownDescription": "Whether to show inlay hints for closure captures.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
|
||||
"markdownDescription": "Whether to show inlay type hints for return types of closures.",
|
||||
"default": "never",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue