Skip to content

Stream results for "Go To References" and other "Go To" methods #4321

Open

Description

@mamilic

At the moment when the Go To References is triggered, it will have delay showing the popup, which impact user experience.

Would it be possible to lazy load the results for all Go To methods/functions so that popup is displayed immediatly and resulsts are streamed?

Activity

  1. changed the title [-]Lazy load Go To References and other Got To methods[/-] [+]Stream resulsts "Go To References" and other "Got To" methods[/+] on Jan 29, 2026
  2. changed the title [-]Stream resulsts "Go To References" and other "Got To" methods[/-] [+]Stream results for "Go To References" and other "Got To" methods[/+] on Jan 29, 2026
  3. changed the title [-]Stream results for "Go To References" and other "Got To" methods[/-] [+]Stream results for "Go To References" and other "Go To" methods[/+] on Jan 29, 2026
  4. fbricon commented on Jan 29, 2026

    @fbricon
    Collaborator

    How big a delay are you talking about?
    The solution you describe is the exact opposite of lazy loading. I'd rather fix performance issue than preload the world just in case someone needs Go to references

  5. fbricon commented on Jan 29, 2026

    @fbricon
    Collaborator

    Sorry I misunderstood what you described :-)
    We need to investigate if streaming results is a possible solution

  6. fbricon commented on Jan 29, 2026

    @fbricon
    Collaborator

    @mamilic do you know of other extensions providing streaming support for "go to references", for other languages?

  7. mamilic commented on Jan 29, 2026

    @mamilic
    ContributorAuthor

    Hi @fbricon , thank you for quick reply.

    The performance issue with Go to References is with medium to large projects. For example try to open this project, https://github.com/spring-cloud/spring-cloud-stream, go to BindingsLifecycleController try to find all references for setApplicationContext, it will take few seconds to return the results.

  8. mamilic commented on Jan 29, 2026

    @mamilic
    ContributorAuthor

    I do not know any, not sure if its possible to be honest. :/

  9. fbricon commented on Jan 29, 2026

    @fbricon
    Collaborator

    LSP spec says it's doable (ReferenceParams extends PartialResultParams). But I'm curious to see how it looks like in a real world scenario

  10. fbricon commented on Jan 29, 2026

    @fbricon
    Collaborator

    VS Code currently doesn't support streaming : microsoft/vscode#105870

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions