madskristensen / PackageInstaller

A Visual Studio extension
Other
67 stars 15 forks source link

Intellisense not working for NuGet #20

Closed asherber closed 7 years ago

asherber commented 7 years ago

Installed product versions

Description

I am not seeing any Intellisense or auto completion when typing in the name of a NuGet package. I don't use the other package managers, so I don't know if Intellisense is working there.

Steps to recreate

  1. Open dialog
  2. Start typing the name of a package

Current behavior

Nothing -- typing proceeds as usual.

Expected behavior

Should see Intellisense/auto completion for matching packages as I type.

asherber commented 7 years ago

https://github.com/madskristensen/PackageInstaller/blob/master/src/Providers/NuGet.cs#L46 is using https://api-v3search-0.nuget.org/autocomplete as the search URL. But according to https://api.nuget.org/v3/index.json the correct URL is https://api-v2v3search-0.nuget.org/autocomplete

I can confirm that this URL does work for autocomplete searches. I'll submit a PR with the change.