You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for Inlay Hints for (unnamed) parameter names #3609
In your previous screenshot there were two places inlay hints were being used:
At the call site of functions, to show the names of arguments (that are not already named)
Were types are being inferred and not present in the source code
Although both use inlay hints, the implementation of these is quite separate and I think make sense to track separately (for example one could be shipped without the other).
I've updated the name of this issue to assume the first - it's worth filing a separate issue about the other one too.
I would like to second this issue, would be very useful. VSCode has an inlay hints setting now; maybe the situation has changed since?
Enabling this has no effect for .dart files.
The VS Code API has been finalized: microsoft/vscode#16221 (comment). I would love to see the feature implemented in vscode for dart .Vscode already supports it for JavaScript & typescript.
Activity
[-]Add support for Inlay Hints[/-][+]Add support for Inlay Hints for (unnamed) parameter names[/+]DanTup commentedon Oct 12, 2021
In your previous screenshot there were two places inlay hints were being used:
Although both use inlay hints, the implementation of these is quite separate and I think make sense to track separately (for example one could be shipped without the other).
I've updated the name of this issue to assume the first - it's worth filing a separate issue about the other one too.
Right now, use of Inlay Hints is blocked on LSP support which is in progress at microsoft/language-server-protocol#956.
RedyAu commentedon Jan 31, 2022
I would like to second this issue, would be very useful. VSCode has an inlay hints setting now; maybe the situation has changed since?

Enabling this has no effect for .dart files.
DanTup commentedon Jan 31, 2022
@RedyAu Dart uses LSP, so nothing could be started on this until it's been available in LSP:
microsoft/language-server-protocol#956
sanathusk commentedon Jul 6, 2022
The VS Code API has been finalized: microsoft/vscode#16221 (comment). I would love to see the feature implemented in vscode for dart .Vscode already supports it for JavaScript & typescript.
DanTup commentedon Sep 14, 2022
Start working on this at https://dart-review.googlesource.com/c/sdk/+/259181/.
It's in the language server, so will become part of a future Dart/Flutter SDK release rather than a Dart-Code release.
DanTup commentedon Sep 14, 2022
Landed in dart-lang/sdk@15dfda9.