Open jkone27 opened 5 months ago
Sounds reasonable! Let me make sure I understand the request:
When triggering completion in a constructor, if at the end of the constructor parameter list, users should see any settable properties (in C# terms this is
set
orinit
properties) in the completion list
Is that accurate?
Yes indeed, I just find it sometimes painful to work with c# poco objects initialiser from F#, it works but syntax is not clear , not well documented and not suggested by the autocomplete/inline-docs. So I think this can help many beginners , maybe I would also mention that curls in C# are replaced by normal Parents in F#? Or maybe a custom computation expression working only with POCOS like
type MyPoco() =
member val this.Test = "" with get,set
// only unit -> unit is suggested here, not to fill in with Test property which has a public setter..
let x = new MyPoco()
Would make it even closer to C# for pocos and easier to bridge the gap?
Details
atm, dotnet reference types constructor just show unit unit if they have an empty constructor, but that is not useful as the developer many time, even for poco objects, wants to see the public properties names, and be suggested with them on how to fill in a common .NET object coming from a nugget library or a C# project.
is not a useful signature for the developer, because he can also use the object constructor (curly constructor from C#) in F# using parentheses and specifying named arguments
Checklist