提交 3c2aef55 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Merge pull request #15270 from CyrusNajmabadi/removeHardCodedPackageInfo

Remove hard coded info about System.ValueTuple now that we're adding it to the nuget index.
......@@ -108,25 +108,7 @@ public SymbolSearchUpdateEngine(ISymbolSearchLogService logService)
return Task.FromResult(result.ToImmutableAndFree());
}
public async Task<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(
string source, string assemblyName)
{
var result = await FindPackagesWithAssemblyWorkerAsync(source, assemblyName).ConfigureAwait(false);
#if DEBUG
// For testing purposes, we hardcode this in if we're in DEBUG mode.
if (result.Length == 0 &&
source == NugetOrgSource &&
assemblyName == "System.ValueTuple")
{
return ImmutableArray.Create(new PackageWithAssemblyResult("System.ValueTuple", "", rank: 0));
}
#endif
return result;
}
public Task<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyWorkerAsync(
public Task<ImmutableArray<PackageWithAssemblyResult>> FindPackagesWithAssemblyAsync(
string source, string assemblyName)
{
if (!_sourceToDatabase.TryGetValue(source, out var databaseWrapper))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册