Skip to content

Add support for Inlay Hints for (unnamed) parameter names #3609

Closed

Description

Hello,
We would all like to see the support for inlay hints.
There isn't much to say here, everything is more or less self explanatory.

Activity

  1. ghost added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Oct 12, 2021
  2. changed the title [-]Add support for Inlay Hints[/-] [+]Add support for Inlay Hints for (unnamed) parameter names[/+] on Oct 12, 2021
  3. DanTup commented on Oct 12, 2021

    @DanTup
    Member

    In your previous screenshot there were two places inlay hints were being used:

    1. At the call site of functions, to show the names of arguments (that are not already named)
    2. 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.

    Right now, use of Inlay Hints is blocked on LSP support which is in progress at microsoft/language-server-protocol#956.

  4. added this to the Backlog milestone on Oct 12, 2021
  5. RedyAu commented on Jan 31, 2022

    @RedyAu

    I would like to second this issue, would be very useful. VSCode has an inlay hints setting now; maybe the situation has changed since?
    image
    Enabling this has no effect for .dart files.

  6. DanTup commented on Jan 31, 2022

    @DanTup
    Member

    @RedyAu Dart uses LSP, so nothing could be started on this until it's been available in LSP:

    microsoft/language-server-protocol#956

  7. sanathusk commented on Jul 6, 2022

    @sanathusk

    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.

  8. modified the milestones: Backlog, v3.50.0 on Sep 12, 2022
  9. DanTup commented on Sep 14, 2022

    @DanTup
    Member

    Start working on this at https://dart-review.googlesource.com/c/sdk/+/259181/.

    Sep-14-2022 10-42-24

    It's in the language server, so will become part of a future Dart/Flutter SDK release rather than a Dart-Code release.

  10. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on Sep 14, 2022
  11. DanTup commented on Sep 14, 2022

    @DanTup
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions