FsAutoComplete icon indicating copy to clipboard operation
FsAutoComplete copied to clipboard

Auto completions not working for aspnet extension methods

Open jkone27 opened this issue 1 year ago • 1 comments

Version

7.23.0

Dotnet Info

is anyone else encountering issues to get vscode suggestions for namespaces completion from .net aspnecore minimal api? e.g. dotnet new web --language F# and try use builder.Services.AddHttpClient and tab for suggestions, no namespace is suggested to include, do other people experience such when trying to have autosuggestions on extension methods defined in .NET namespaces (already referenced)?

Image

Image

or similarly with task CE ... does not suggest opening the right namespaces automatically

Image

Steps to reproduce

dotnet new web --language F# and try use builder.Services.AddHttpClient and tab for suggestions... no correct suggestion appears

Details

Expected Behaviour: correct open namespace suggestions show up for any Microsoft.Extensions.DependencyInjection or similar regular dependencies for aspnet projects

Logs

No response

Checklist

  • [x] I have looked through existing issues to make sure that this bug has not been reported before
  • [x] I have provided a descriptive title for this issue
  • [x] I have made sure that that this bug is reproducible on the latest version of the package
  • [x] I have provided all the information needed to reproduce this bug as efficiently as possible
  • [x] I or my company would be willing to contribute this fix

jkone27 avatar Feb 10 '25 13:02 jkone27

builder.Services.AddHttpClient and tab for suggestions,

Yeah we've definitely struggled with extension methods for a long time. It would be good to get this fixed.

or similarly with task CE ... does not suggest opening the right namespaces automatically

task CE is already part of the auto-opened namespaces. I'm not sure what solution you're looking for here.

TheAngryByrd avatar Feb 10 '25 15:02 TheAngryByrd