about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-12-23 11:28:46 +0100
committerLukas Wirth <lukastw97@gmail.com>2022-12-23 11:37:42 +0100
commitdf8fc78eced2a720d26592a1540140aabc37c85a (patch)
treeb019ec0d03d97c0a3f1858c555802dabe51d48ad /editors/code/package.json
parentb48a1ae004b4116377b80c98407c0164c4492d5f (diff)
downloadrust-df8fc78eced2a720d26592a1540140aabc37c85a.tar.gz
rust-df8fc78eced2a720d26592a1540140aabc37c85a.zip
Enum variant discriminants hints
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index fad67ce8031..b45058a6cf3 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -960,6 +960,21 @@
                         "Only show type hints for return types of closures with blocks."
                     ]
                 },
+                "rust-analyzer.inlayHints.discriminantHints.enable": {
+                    "markdownDescription": "Whether to show enum variant discriminant hints.",
+                    "default": "never",
+                    "type": "string",
+                    "enum": [
+                        "always",
+                        "never",
+                        "fieldless"
+                    ],
+                    "enumDescriptions": [
+                        "Always show all discriminant hints.",
+                        "Never show discriminant hints.",
+                        "Only show discriminant hints on fieldless enum variants."
+                    ]
+                },
                 "rust-analyzer.inlayHints.expressionAdjustmentHints.enable": {
                     "markdownDescription": "Whether to show inlay hints for type adjustments.",
                     "default": "never",