aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-12 16:02:55 +0000
committerGitHub <[email protected]>2020-03-12 16:02:55 +0000
commitd98a5fab46c5850a484349c50dda7cb823cc179a (patch)
tree754340fc8f170ed6057e6302fef1386ae8fb52d9 /docs/user
parent944bd2cbc3af1a11eb6dbaec96fcc0030f42232a (diff)
parenta153b9087520012b5f815b4df6c3657d490b30c8 (diff)
Merge #3543
3543: Parameter inlay hint separate from variable type inlay? #2876 r=matklad a=slyngbaek Add setting to allow enabling either type inlay hints or parameter inlay hints or both. Group the the max inlay hint length option into the object. - Add a new type for the inlayHint options. - Add tests to ensure the inlays don't happen on the server side Co-authored-by: Steffen Lyngbaek <[email protected]>
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/features.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/user/features.md b/docs/user/features.md
index ba4d50fa8..06bc7ded5 100644
--- a/docs/user/features.md
+++ b/docs/user/features.md
@@ -191,8 +191,8 @@ Two types of inlay hints are displayed currently:
191 191
192In VS Code, the following settings can be used to configure the inlay hints: 192In VS Code, the following settings can be used to configure the inlay hints:
193 193
194* `rust-analyzer.displayInlayHints` — toggles inlay hints display on or off 194* `rust-analyzer.inlayHintOpts.displayType` configure which types of inlay hints are shown.
195* `rust-analyzer.maxInlayHintLength` — shortens the hints if their length exceeds the value specified. If no value is specified (`null`), no shortening is applied. 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.
196 196
197**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. 197**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.
198This approach has limitations, the caret movement and bracket highlighting near the edges of the hint may be weird: 198This approach has limitations, the caret movement and bracket highlighting near the edges of the hint may be weird: