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

Inlay Hints: better support for destructuring #540

Merged
merged 3 commits into from
Aug 2, 2022

Conversation

aspeddro
Copy link
Contributor

@aspeddro aspeddro commented Aug 1, 2022

Fix #536

image

@aspeddro aspeddro changed the title Better support for destructuring Inlay Hints: better support for destructuring Aug 2, 2022
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving this.
Would you rebase on master to address merge conflicts. Then we can merge.

@@ -395,7 +395,7 @@ let test ~path =
| "dia" -> diagnosticSyntax ~path
| "hin" ->
let line_start = 0 in
let line_end = 6 in
let line_end = 34 in
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed this now -- would you add a comment about the line number hardcoded in the test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@cristianoc cristianoc merged commit dc55067 into rescript-lang:master Aug 2, 2022
@aspeddro aspeddro deleted the fix-inlay-hint-tuple branch December 19, 2022 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inlay hint incorrectly shows type of first binding of destructured record for entire record
2 participants