Skip to content

Record fields hover #60611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
FMorschel opened this issue Apr 24, 2025 · 0 comments
Open

Record fields hover #60611

FMorschel opened this issue Apr 24, 2025 · 0 comments
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-hover Issues related to hovers P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@FMorschel
Copy link
Contributor

FMorschel commented Apr 24, 2025

Consider:

void foo((String, {int value}) r, {int? other}) {
  r.$1;
  r.value;
  var (v, :value) = r;
  foo((v, value: value), other: 0);
}

See the available hover data:

Image

Image

Considering parameters:

Image

The record pattern name is the same as above:

Image

But when filling in the record for a parameter like this, nothing shows:

Image

I'm suggesting we have some indication for the user of what type is expected at this value. And maybe enhancing the other hovers for getters.

Somewhat related to:

@FMorschel FMorschel added the area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. label Apr 24, 2025
@srawlins srawlins added P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug devexp-hover Issues related to hovers labels Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-hover Issues related to hovers P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants