-
Notifications
You must be signed in to change notification settings - Fork 790
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
Record names are not suggested in the pattern matching #15889
Comments
I'll fix this. |
I noticed the AST is also rather lacking https://fsprojects.github.io/fantomas-tools/#/ast?data=N4KABGBEAmCmBmBLAdrAzpAXFSAacUiaAYmolmPAIYA2as%2BEkAxgPZwWQAuAngA6wwAZVYBbWABV%2BggLxhgYCQAtYxRLBrQw2NFwBOKAOZgAvgB09Z5Bas1YXSmAAeYGTeQQIoql2ZLnYADuiFxK7p5gAD7yiipqGlpyZpAAgsmmYAC0AHxg%2BgCusOGe0QquYMkAQukmWbkFRZYeJWAA%2BnWUtPR4BJCwTnxUyNAUDSAmQA I don't think there is any proper recovery for the fsharp/src/Compiler/SyntaxTree/SyntaxTree.fsi Line 1107 in 97a5b65
That most likely also needs addressing. |
Actually, I don't think I broke it in my completions PRs. Are we positive this worked in 17.7 or earlier? There's nevertheless certainly room for improvement in terms of filtering, adding field names and suggesting pattern names to the right of |
Well the demo is on VS GA, 17.7.2. |
I wouldn't - specialized completions for patterns were non-existent just a couple of weeks ago. We only have a completion context for record expressions, which results in field names being inserted into the completions list. |
It's the same in 17.6.6. |
Hmhm alright, I'll remove the regression tag then for now. |
This code:
... doesn't suggest
TheField
for the pattern matching rule at any time.bug2.mp4
I am quite sure this is a bug and a regression. This is implied by this bug and by common sense.
The text was updated successfully, but these errors were encountered: