fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Show all extension methods in completion list.

Open ijklang opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Many of C# libraries use extension methods to extend functionality of the existing types, and the C# language service can list all of them out, no matter whether the namespace is opened. Users doesn't care about which namespace containing the extension method they want to use.

Describe the solution you'd like

Show all extension methods in completion list, no matter whether the namespace is opened.

Describe alternatives you've considered

Manually find out which namespace containing the extension method, and open it.

ijklang avatar Jan 20 '24 18:01 ijklang

While this is possible, it might be quite heavy on the checker and inforeader, we might put it under flag (though to be honest, I though we already do so in VS).

vzarytovskii avatar Jan 22 '24 08:01 vzarytovskii

In FSAC we've also put this behavior behind a flag for performance purposes: FSharp.externalAutocomplete.

baronfel avatar Jan 22 '24 15:01 baronfel

In FSAC we've also put this behavior behind a flag for performance purposes: FSharp.externalAutocomplete.

We do have it in VS too, not sure if we discover extensions too: image

vzarytovskii avatar Jan 22 '24 17:01 vzarytovskii