You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cartermp, I think in order to determine the context SyntaxVisitorBase would need to be extended. traverseSynTypeDefn currently only processes SynTypeDefnRepr.ObjectModel and SynTypeDefnSimpleRepr.TypeAbbrev with the comment enums/DUs/record definitions don't have any SynExprs inside them. Would it be acceptable to add 3 new visitor methods to cover these definition types? Maybe a question for Don?
Yeah, I think that's going to be pretty much the only way to handle this without writing a different parser. I'd be happy to look at a draft PR for general direction and we can see if that's acceptable as API additions.
Activity
cartermp commentedon Dec 11, 2018
Listing as a bug because it feels like one when you type, but this is really because we don't have a completion context for DU case declaration: https://github.com/Microsoft/visualfsharp/blob/e709f52b21db479c198aa7a62e5fd941429df4be/src/fsharp/service/ServiceUntypedParse.fs#L69
kerams commentedon Jun 7, 2021
@cartermp, I think in order to determine the context
SyntaxVisitorBasewould need to be extended.traverseSynTypeDefncurrently only processesSynTypeDefnRepr.ObjectModelandSynTypeDefnSimpleRepr.TypeAbbrevwith the commentenums/DUs/record definitions don't have any SynExprs inside them. Would it be acceptable to add 3 new visitor methods to cover these definition types? Maybe a question for Don?cartermp commentedon Jun 7, 2021
Yeah, I think that's going to be pretty much the only way to handle this without writing a different parser. I'd be happy to look at a draft PR for general direction and we can see if that's acceptable as API additions.
gsomix commentedon Dec 21, 2021
Is it fixed in #12351? @kerams
kerams commentedon Dec 21, 2021
In VS it should be. Hopefully the next preview will contain it. Other editors will need to reimplement #12351 (I think?), but they can lean on #11641.
gsomix commentedon Dec 21, 2021
@kerams Thank you! I'm closing it. :)