So this is supposed to return some autocompletion on my method withApproval() but instead, this other does resolve properly in the LSP/extension:
So something is clearly resolving in an odd way here...
I see the factory() method is in a trait and annotated with generic type bound to static type 🙂
The LS is probably not handling one of the "clue" well:
We'll take a look.
We're pushing Pre-Release (v1.12.9980) which improves the type inferring in such cases.
Although; I'm not sure how to replicate this case exactly.
Do you have a small example with Revision, RevisionFactory, and withApproval definitions?
JakubMisek Yes, will post a quick example on gist / Github once I've time during the day
Actually, is this a problem with the type static in docblocks? I think I had this somehow in other classes
d8vjork there was a problem in the case of static within a trait - static was incorrectly treated as the containing trait, instead of the actual class