Skip to content

Conversation

zth
Copy link
Member

@zth zth commented Jun 4, 2024

Fixes a special case.

@zth zth requested a review from cristianoc June 4, 2024 07:02
if Debug.verbose () && debugTypedCompletionExpr then
print_endline "[typedCompletionExpr] No cases, rest";
()
| Pexp_match (expr, [{pc_lhs; pc_rhs}])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps add a comment here as the case is similar to what's in the comment for the next case.

@zth
Copy link
Member Author

zth commented Jun 4, 2024

Note to self: This logic can probably be cleaned up a little bit in the future.

@zth zth merged commit 5734b9f into master Jun 4, 2024
@zth zth deleted the completion-switch-expr-special-case branch June 4, 2024 08:27
jfrolich pushed a commit to jfrolich/rescript-vscode that referenced this pull request Sep 3, 2024
* fixes a special case in switch expr completion

* changelog

* add comments
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.

2 participants