Skip to content

Extension for RecordType doesn't auto-complete fields without this. #60625

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 25, 2025 · 3 comments
Open

Extension for RecordType doesn't auto-complete fields without this. #60625

FMorschel opened this issue Apr 25, 2025 · 3 comments
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. P2 A bug or feature request we're likely to work on

Comments

@FMorschel
Copy link
Contributor

FMorschel commented Apr 25, 2025

Consider this code:

extension on ({int foo, int bar}) {
  int get baz => foo + bar;
  int get qux => this.foo + this.bar;
}

Without this. in front, no completion is shown for foo or bar, even though they are in scope and are valid.

Also, the colouring is off on VS Code (CC @DanTup):

Image

@FMorschel FMorschel added the area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. label Apr 25, 2025
@FMorschel
Copy link
Contributor Author

I suppose that colouring will fix itself if the first issue is fixed, but it is probably best to verify that.

I'll see what I can do about the completion first.

@FMorschel
Copy link
Contributor Author

@bwilkerson bwilkerson added the P2 A bug or feature request we're likely to work on label May 2, 2025
@FMorschel
Copy link
Contributor Author

Here is the second CL for fixing the colouring https://dart-review.googlesource.com/c/sdk/+/426342.

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. P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

2 participants