Skip to content
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

No types produced for record fields when using the legacy protocol #54286

Open
bwilkerson opened this issue Dec 8, 2023 · 1 comment
Open
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.

Comments

@bwilkerson
Copy link
Member

Given the following file:

void f((int, String) r) {
  r.
}

attempting to code complete after the period produces the correct results, but the types of the record fields $1 and $2 are not displayed when using the legacy protocol. (They are produced using LSP.)

@bwilkerson bwilkerson added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-completion Issues with the analysis server's code completion feature labels Dec 8, 2023
@keertip keertip added the P4 label Dec 11, 2023
@scheglov scheglov self-assigned this Mar 11, 2024
@scheglov
Copy link
Contributor

DAS does produce returnType for completions.
See the test.

But apparently IntelliJ does not use it.
@jwren if you want to fix this in IntelliJ.

@bwilkerson bwilkerson added area-intellij Tracking issues for the Dart IntelliJ plugin. and removed area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-completion Issues with the analysis server's code completion feature P4 labels Mar 11, 2024
@bwilkerson bwilkerson reopened this Mar 11, 2024
@scheglov scheglov removed their assignment Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.
Projects
None yet
Development

No branches or pull requests

3 participants