JetBrains / resharper-fsharp

F# support in JetBrains Rider
Apache License 2.0
328 stars 53 forks source link

autocomplete breaks on large types #216

Open landy opened 3 years ago

landy commented 3 years ago

Hello, I'm experiencing problems when using type providers that generate a large amount of properties on a type. For example https://github.com/zanaptak/TypedCssClasses used with TailwindCSS.

It always restart filtering when i write a dash and for some reason it stops completely after I write tw.bg-green- that second dash seems to break it. It also stops working after I delete some chars and start typing again. When I delete everything and start typing from the dot it works again.

Rider version 2020.3 FSharp support version 2020.3.120

in Ionide it behaves like this: ionide

in Rider it works like this https://imgur.com/gallery/3172ZbV 2020-12-21 13 27 08

I've created a example repository where it is reproducible: https://github.com/landy/typeproviders-autocomplete

auduchinok commented 3 years ago

@landy Thanks for the complete example! I guess we'll need to add some F#-specific logic to this matching handling.

landy commented 3 years ago

That would be great :) without it the library is almost unusable :(