about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-11-04 22:59:07 +0100
committerLukas Wirth <lukastw97@gmail.com>2022-11-04 22:59:07 +0100
commitd841ad116a3d438c4b04db1d895d9cc4991ca2c0 (patch)
tree47d6743efbd946e0b62cf2c1711f019684021bee /editors/code/package.json
parent95d20fccd77869a98ed8db1e8b0d45d4d909f26b (diff)
downloadrust-d841ad116a3d438c4b04db1d895d9cc4991ca2c0.tar.gz
rust-d841ad116a3d438c4b04db1d895d9cc4991ca2c0.zip
Fix up adjustment hints configurations
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json17
1 files changed, 16 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 8e8b59159db..f14123469b3 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -935,6 +935,21 @@
                         "Only show type hints for return types of closures with blocks."
                     ]
                 },
+                "rust-analyzer.inlayHints.expressionAdjustmentHints.enable": {
+                    "markdownDescription": "Whether to show inlay hints for type adjustments.",
+                    "default": "never",
+                    "type": "string",
+                    "enum": [
+                        "always",
+                        "never",
+                        "reborrow"
+                    ],
+                    "enumDescriptions": [
+                        "Always show all adjustment hints.",
+                        "Never show adjustment hints.",
+                        "Only show auto borrow and dereference adjustment hints."
+                    ]
+                },
                 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
                     "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
                     "default": "never",
@@ -970,7 +985,7 @@
                     "type": "boolean"
                 },
                 "rust-analyzer.inlayHints.reborrowHints.enable": {
-                    "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
+                    "markdownDescription": "Whether to show inlay hints for compiler inserted reborrows.\nThis setting is deprecated in favor of #rust-analyzer.inlayHints.expressionAdjustmentHints.enable#.",
                     "default": "never",
                     "type": "string",
                     "enum": [