Skip to content

Commit ddfac09

Browse files
committed
Fix docs
1 parent b3fa731 commit ddfac09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/user/features.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,9 @@ Two types of inlay hints are displayed currently:
191191

192192
In VS Code, the following settings can be used to configure the inlay hints:
193193

194-
* `rust-analyzer.inlayHintOpts.displayType` configure which types of inlay hints are shown.
195-
* `rust-analyzer.inlayHintOpts.maxLength` — shortens the hints if their length exceeds the value specified. If no value is specified (`null`), no shortening is applied.
194+
* `rust-analyzer.inlayHints.typeHints` - enable hints for inferred types.
195+
* `rust-analyzer.inlayHints.parameterHints` - enable hints for function parameters.
196+
* `rust-analyzer.inlayHints.maxLength` — shortens the hints if their length exceeds the value specified. If no value is specified (`null`), no shortening is applied.
196197

197198
**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.
198199
This approach has limitations, the caret movement and bracket highlighting near the edges of the hint may be weird:

0 commit comments

Comments
 (0)