-
Notifications
You must be signed in to change notification settings - Fork 818
Code completion doesn't work inside Or pattern #16055
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
Comments
Can we have a more meaningful example? I'm a bit confused by the example expression here. |
I presume this: module Module
match () with
| (_ | <here should be an autocomplete, but there's none> ) |
I didn't know you could put parentheses around some cases. Is there even any point to that? Also in this example, you already gave a I don't know if in the code we are looking at any of that, but still, a better example would be something where some completions would make sense. In this particular case nothing being suggested looks like a feature 😄 |
In test cases like this it doesn't matter if type U =
| A
| B
| C
let f (u: U) =
match u with
| (A | {caret}) -> () Here, at the |
There's a You get completions as soon as you type another letter, so while this is a regression, it's nothing tragic. |
@kerams Thanks for investigation!
I agree, we should make the pattern errors look similar to the expression ones. |
Consider code completion is triggered after
|
in this code:Expected: types, union cases, literals, and active patterns are provided
Actual: the items are not provided
This may be related to either changes in the parser or to completion filtering.
The text was updated successfully, but these errors were encountered: