Skip to content

Feature request: support inline CodeLens references #1605

Open

Description

@tomgilder

Hello! I would love Dart Code to support inline CodeLens references, as it supports for C# and TypeScript:

Screenshot 2019-04-09 at 09 19 42

Here's how it's implemented for TypeScript: https://github.com/Microsoft/vscode/blob/master/extensions/typescript-language-features/src/features/referencesCodeLens.ts

Thank you for all the great work so far 😀

Activity

  1. added
    in editor
    is enhancement
    on Apr 9, 2019
  2. added this to the On Deck milestone on Apr 9, 2019
  3. DanTup commented on Apr 9, 2019

    @DanTup
    Member

    We might need server support to get them for a whole file in one go. Otherwise we'd have to send repeated requests for references (and use some other data, like Outline?) to know where to send them for.

  4. added
    blocked on dart / flutter
    on Apr 16, 2019
  5. modified the milestones: On Deck, Backlog on Jul 18, 2019
  6. added
    in lsp/analysis server
    on Jun 1, 2020
  7. MoeHamdan commented on Jul 15, 2020

    @MoeHamdan

    When will this be released? This is really very important, it will help us navigate the code quickly.

  8. DanTup commented on Jul 15, 2020

    @DanTup
    Member

    There's no timeline for releasing this as it has not been developed yet. It would require some additional work in the analysis server first. In the meantime, you can use Go-to-Definition and Find References (both of which have shortcut keys) on the symbol directly.

  9. MoeHamdan commented on Jul 15, 2020

    @MoeHamdan

    I understand. Thank you, keep up the good work! :) hopefully you will have time to develop this soon.

  10. removed
    blocked on dart / flutter
    on Jan 26, 2021
  11. rohitvishwakarma1819 commented on Dec 25, 2021

    @rohitvishwakarma1819

    Hey @DanTup,

    It would be wonderful if you can give dev option to change reference text position.
    Please refer this to understand what I mean.
    I hope it is possible.

    Thanks

  12. DanTup commented on Dec 29, 2021

    @DanTup
    Member

    @rohitvishwakarma1819 thanks for the suggestion! CodeLens rendering is all handled by VS Code and not the extension so this would need support from VS Code. There's an open issue about it at microsoft/vscode#90235 you can 👍 !

  13. alp1396 commented on Dec 23, 2023

    @alp1396

    Is there any news about feature? 2024 is coming, so...

  14. crkit-chan commented on Feb 19, 2024

    @crkit-chan

    I've opened a feature request in VSCode to automatically implement this:

  15. Osmosis311 commented on Nov 22, 2024

    @Osmosis311

    Any update on this?

    Anyone know of a 3rd party extension that does this?

  16. eynerdevp commented on Aug 20, 2025

    @eynerdevp

    any update for this?

  17. wisamidris77 commented on Sep 28, 2025

    @wisamidris77

    Still waiting is there any updates!
    Even make it with a option like

    dart.previewCodeLensReferences

  18. JustLookAtNow commented on Oct 27, 2025

    @JustLookAtNow

    The year 2025 is almost over — are there any updates?

  19. DanTup commented on Oct 27, 2025

    @DanTup
    Member

    No updates on this. In my opinion, this is best implemented as a VS Code (and LSP) feature (either as something new or by using the existing data that exists) and then just the data provided by the extension.

    There's an issue open at microsoft/vscode#205561 which only has 17 👍s so I would encourage you to add your 👍 there. Thanks!

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 editorin lsp/analysis serveris enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions