diff options
| author | bors <bors@rust-lang.org> | 2022-12-22 09:37:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-22 09:37:00 +0000 |
| commit | eb3963b22ec8ec7e99aeb1a2c7acb5689a2f76c5 (patch) | |
| tree | 00b5b12b410e0ee25ca156a5018c393765e41916 /editors/code/package.json | |
| parent | 271f7b44d3d71db2ec2d0cd1a8a59aa16f902d49 (diff) | |
| parent | 1038db5f1d79155860bd9e1487c0df34ec542b39 (diff) | |
| download | rust-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:  Requested by `@BoxyUwU` <3
Diffstat (limited to 'editors/code/package.json')
| -rw-r--r-- | editors/code/package.json | 5 |
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", |
