about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json20
1 files changed, 16 insertions, 4 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index aeb1d97c5f6..5ffce2f5536 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -1000,10 +1000,22 @@
                     "default": false,
                     "type": "boolean"
                 },
-                "rust-analyzer.inlayHints.expressionAdjustmentHints.postfix": {
-                    "markdownDescription": "Whether to show inlay hints for type adjustments as postfix ops (`.*` instead of `*`, etc).",
-                    "default": false,
-                    "type": "boolean"
+                "rust-analyzer.inlayHints.expressionAdjustmentHints.mode": {
+                    "markdownDescription": "Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc).",
+                    "default": "prefix",
+                    "type": "string",
+                    "enum": [
+                        "prefix",
+                        "postfix",
+                        "prefer_prefix",
+                        "prefer_postfix"
+                    ],
+                    "enumDescriptions": [
+                        "Always show adjustment hints as prefix (`*expr`).",
+                        "Always show adjustment hints as postfix (`expr.*`).",
+                        "Show prefix or postfix depending on which uses less parenthesis, prefering prefix.",
+                        "Show prefix or postfix depending on which uses less parenthesis, prefering postfix."
+                    ]
                 },
                 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
                     "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",