Skip to content

Commit a207698

Browse files
DanTupCommit Queue
authored andcommitted
[analysis_server] [lsp] Add docs for inlay hints config to readme
See #60326 Change-Id: I8d7faf4a48e3e3738cd97fba3f695e404318cab5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441141 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Auto-Submit: Danny Tuppeny <[email protected]>
1 parent 76ca835 commit a207698

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/analysis_server/tool/lsp_spec/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ Client workspace settings are requested with `workspace/configuration` during in
4444
- `dart.updateImportsOnRename` (`bool?`): Whether to update imports and other directives when files are renamed. When unspecified, imports will be updated if the client supports `willRenameFiles` requests.
4545
- `dart.documentation` (`none`, `summary`, `full`): The kind of dartdocs to include in requests that can return large numbers of results such as Code Completion. If not set, defaults to `full`.
4646
- `dart.includeDependenciesInWorkspaceSymbols` (`bool?`): Whether to include symbols from dependencies and Dart/Flutter SDKs in Workspace Symbol results. If not set, defaults to `true`.
47+
- `dart.inlayHints` (`bool?` | `Object?`): Whether to show Inlay Hints. When set to `true`, enables all inlay hints with default settings. When set to `false`, disables all inlay hints. Can also be an object to configure individual hint types as defined below. Defaults to `true`.
48+
- `parameterNames` (`{ "enabled": true | false | "none" | "literal" | "all" }`): Controls parameter name hints.
49+
- `"none"` or `false`: show no parameter name hints
50+
- `"literal"`: show hints only for arguments with literal values
51+
- `"all"` or `true`: show hints for all parameters
52+
- `parameterTypes` (`{ "enabled": bool }`): Whether to show Inlay Hints for inferred parameter types.
53+
- `returnTypes` (`{ "enabled": bool }`): Whether to show Inlay Hints for inferred return types.
54+
- `typeArguments` (`{ "enabled": bool }`): Whether to show Inlay Hints for inferred type arguments.
55+
- `variableTypes` (`{ "enabled": bool }`): Whether to show Inlay Hints for inferred variable declarations.
4756

4857
## Method Status
4958

0 commit comments

Comments
 (0)