about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-22 09:37:00 +0000
committerbors <bors@rust-lang.org>2022-12-22 09:37:00 +0000
commiteb3963b22ec8ec7e99aeb1a2c7acb5689a2f76c5 (patch)
tree00b5b12b410e0ee25ca156a5018c393765e41916 /editors/code/package.json
parent271f7b44d3d71db2ec2d0cd1a8a59aa16f902d49 (diff)
parent1038db5f1d79155860bd9e1487c0df34ec542b39 (diff)
downloadrust-eb3963b22ec8ec7e99aeb1a2c7acb5689a2f76c5.tar.gz
rust-eb3963b22ec8ec7e99aeb1a2c7acb5689a2f76c5.zip
Auto merge of #13817 - WaffleLapkin:hide_adjustment_hints_outside_of_unsafe, r=Veykril
feat: Add an option to hide adjustment hints outside of `unsafe` blocks and functions

As the title suggests: this PR adds an option (namely `rust-analyzer.inlayHints.expressionAdjustmentHints.hideOutsideUnsafe`) that allows to hide adjustment hints outside of `unsafe` blocks and functions:

![2022-12-21_23-11](https://user-images.githubusercontent.com/38225716/208986376-d607de62-8290-4e16-b7fe-15b762dc5f60.png)

Requested by `@BoxyUwU` <3
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 5b09ee6f7da..fad67ce8031 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -975,6 +975,11 @@
                         "Only show auto borrow and dereference adjustment hints."
                     ]
                 },
+                "rust-analyzer.inlayHints.expressionAdjustmentHints.hideOutsideUnsafe": {
+                    "markdownDescription": "Whether to hide inlay hints for type adjustments outside of `unsafe` blocks.",
+                    "default": false,
+                    "type": "boolean"
+                },
                 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
                     "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
                     "default": "never",