Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Annoying auto-complete behavior

Open disarray2077 opened this issue 1 year ago • 1 comments

Auto-complete has this annoying behavior that triggers an auto-complete while you're trying to write parameters in a lambda expression. This doesn't happen if you make it explicit that you want to create a delegate (e.g., by prepending scope or new), but in the case below, I want to make a method reference.

https://github.com/beefytech/Beef/assets/86157825/439020c0-f4da-4d92-8e1b-e9bfcc2edd6e

Tested with: https://github.com/beefytech/Beef/commit/2168fb6917088f00b2d8b4a5e90e88828111da11

disarray2077 avatar Apr 14 '24 00:04 disarray2077

Yeah, that is annoying. I don't see a really good solution, though. At that point it looks like you're performing a cast...

I would say that you could disambiguate by providing a capture specifier like [](i) => instead of just the (i) => but capture specifiers don't currently parse on method references.

bfiete avatar Apr 27 '24 12:04 bfiete