aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-02-22 10:51:08 +0000
committerGitHub <[email protected]>2020-02-22 10:51:08 +0000
commit68c34d1f638c90350d28376d68971e811b80a660 (patch)
tree7aa469e4e4fa1685167534ddbfd4c9076a857bc5 /docs
parent64051ac5c7af84116e200b8e3adecffdf81f3fb4 (diff)
Code review fixes
Co-Authored-By: Florian Diebold <[email protected]> Co-Authored-By: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r--docs/user/features.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/user/features.md b/docs/user/features.md
index 1c18d3ae1..ef58393cd 100644
--- a/docs/user/features.md
+++ b/docs/user/features.md
@@ -159,11 +159,11 @@ active, will pick unique colors for identifiers.
159 159
160### Code hints 160### Code hints
161 161
162Rust Analyzer has two types of hints to show the information about the code: 162Rust-analyzer has two types of hints to show the information about the code:
163 163
164* hover hints, appearing on hover on any element. 164* hover hints, appearing on hover on any element.
165 165
166Contains extended information on the language item hovered. 166These contain extended information on the hovered language item.
167 167
168* inlay hints, shown near the element hinted directly in the editor. 168* inlay hints, shown near the element hinted directly in the editor.
169 169
@@ -176,8 +176,8 @@ Two types of inlay hints are displayed currently:
176 176
177In VS Code, the following settings can be used to configure the inlay hints: 177In VS Code, the following settings can be used to configure the inlay hints:
178 178
179* rust-analyzer.displayInlayHints — toggles inlay hints display on or off 179* `rust-analyzer.displayInlayHints` — toggles inlay hints display on or off
180* rust-analyzer.maxInlayHintLength — shortens the hints if their length exceed the value specified. If no value is specified (`null`), no shorteninng is applied. 180* rust-analyzer.maxInlayHintLength — shortens the hints if their length exceeds the value specified. If no value is specified (`null`), no shorteninng is applied.
181 181
182**Note:** VS Code does not have a native support for inlay hints [yet](https://github.com/microsoft/vscode/issues/16221) and the hints are implemented using decorations. 182**Note:** VS Code does not have native support for inlay hints [yet](https://github.com/microsoft/vscode/issues/16221) and the hints are implemented using decorations.
183This approach has limitations: the caret movement near the end of the hint may look [weird](https://github.com/rust-analyzer/rust-analyzer/issues/1623). 183This approach has limitations: the caret movement near the end of the hint may look [weird](https://github.com/rust-analyzer/rust-analyzer/issues/1623).