about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorJake Heinz <jh@discordapp.com>2021-11-13 23:12:29 +0000
committerJake Heinz <jh@discordapp.com>2021-11-13 23:12:29 +0000
commitd3d768de0d8af96b51cdcdadde511028d3b3d87f (patch)
tree60a1cd6b25dfbb87808b05fae603ac5f924c9138 /editors/code
parentc634615b11f1d67d0e1bcd0d608fe23a04038e88 (diff)
downloadrust-d3d768de0d8af96b51cdcdadde511028d3b3d87f.tar.gz
rust-d3d768de0d8af96b51cdcdadde511028d3b3d87f.zip
inlay hints: add the option to always show constructor inlay hints
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json5
-rw-r--r--editors/code/src/config.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 4c718f0b798..888c9dccf33 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -752,6 +752,11 @@
                     "default": true,
                     "type": "boolean"
                 },
+                "rust-analyzer.inlayHints.hideNamedConstructorHints": {
+                    "markdownDescription": "Whether to hide inlay hints for constructors.",
+                    "default": true,
+                    "type": "boolean"
+                },
                 "rust-analyzer.joinLines.joinElseIf": {
                     "markdownDescription": "Join lines inserts else between consecutive ifs.",
                     "default": true,
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index 3f3ca630981..a3e29fc156f 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -114,6 +114,7 @@ export class Config {
             typeHints: this.get<boolean>("inlayHints.typeHints"),
             parameterHints: this.get<boolean>("inlayHints.parameterHints"),
             chainingHints: this.get<boolean>("inlayHints.chainingHints"),
+            hideNamedConstructorHints: this.get<boolean>("inlayHints.hideNamedConstructorHints"),
             smallerHints: this.get<boolean>("inlayHints.smallerHints"),
             maxLength: this.get<null | number>("inlayHints.maxLength"),
         };