about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code
diff options
context:
space:
mode:
authorroife <roifewu@gmail.com>2024-04-19 21:31:54 +0800
committerroife <roifewu@gmail.com>2024-04-19 21:45:56 +0800
commitc1a4ba55d7f17379fbbde480550174d7fe0ff04a (patch)
tree9d68b348a5df494eb7eadfb1fe4e98353af24076 /src/tools/rust-analyzer/editors/code
parenta1136121b8d7cd5a6eb7f9a18e3b7f91ac9e1913 (diff)
downloadrust-c1a4ba55d7f17379fbbde480550174d7fe0ff04a.tar.gz
rust-c1a4ba55d7f17379fbbde480550174d7fe0ff04a.zip
fix: add a separate setting for enum variants
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
-rw-r--r--src/tools/rust-analyzer/editors/code/package.json13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json
index 88a382f1fb8..ffbceb8ad4f 100644
--- a/src/tools/rust-analyzer/editors/code/package.json
+++ b/src/tools/rust-analyzer/editors/code/package.json
@@ -1152,8 +1152,17 @@
                         }
                     ]
                 },
-                "rust-analyzer.hover.show.adtFieldsOrVariants": {
-                    "markdownDescription": "How many fields or variants of an ADT (struct, enum or union) to display when hovering on. Show none if empty.",
+                "rust-analyzer.hover.show.enumVariants": {
+                    "markdownDescription": "How many variants of an enum to display when hovering on. Show none if empty.",
+                    "default": 5,
+                    "type": [
+                        "null",
+                        "integer"
+                    ],
+                    "minimum": 0
+                },
+                "rust-analyzer.hover.show.structOrUnionFields": {
+                    "markdownDescription": "How many fields of a struct or union to display when hovering on. Show none if empty.",
                     "default": 5,
                     "type": [
                         "null",