about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-08 09:52:29 +0000
committerbors <bors@rust-lang.org>2023-05-08 09:52:29 +0000
commitd3ce333ec858e33e7c881386784d7871c58db2d8 (patch)
treed4b93f00579543d24a3c31939ad09217da003fb3 /editors/code/package.json
parentff8b9699518d4fe92f08629d91b3983e00f75282 (diff)
parent4c5fd19ee5734992344827b11c0d0e864b020b25 (diff)
downloadrust-d3ce333ec858e33e7c881386784d7871c58db2d8.tar.gz
rust-d3ce333ec858e33e7c881386784d7871c58db2d8.zip
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.
![image](https://user-images.githubusercontent.com/3757771/236447484-649a4ea6-ad61-496e-bad8-765a5236150e.png)
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index c9de94f0227..fdcd707a07c 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -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",