about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-03-19 19:01:19 +0100
committerLukas Wirth <lukastw97@gmail.com>2022-03-19 19:01:19 +0100
commit7ab0aaa82a24b2d54b2338722cf63c2cb1caa346 (patch)
tree10fe82bd5f8870860e16421967662d1cd8549aba /editors/code
parent45756c823fdf12ff8eca8c4350b93c833633d4db (diff)
downloadrust-7ab0aaa82a24b2d54b2338722cf63c2cb1caa346.tar.gz
rust-7ab0aaa82a24b2d54b2338722cf63c2cb1caa346.zip
Add option to skip trivial cases
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 83158197741..06c6bcab9e3 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -800,6 +800,26 @@
                     "default": false,
                     "type": "boolean"
                 },
+                "rust-analyzer.inlayHints.lifetimeElisionHints": {
+                    "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
+                    "default": "never",
+                    "type": "string",
+                    "enum": [
+                        "always",
+                        "never",
+                        "skip_trivial"
+                    ],
+                    "enumDescriptions": [
+                        "Always show lifetime elision hints.",
+                        "Never show lifetime elision hints.",
+                        "Always show lifetime elision hints but skip them for trivial single input to output mapping."
+                    ]
+                },
+                "rust-analyzer.inlayHints.paramNamesForLifetimeElisionHints": {
+                    "markdownDescription": "Whether to show prefer using parameter names as the name for elided lifetime hints.",
+                    "default": false,
+                    "type": "boolean"
+                },
                 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
                     "markdownDescription": "Whether to hide inlay hints for constructors.",
                     "default": false,