提交 af20315a 编写于 作者: C Cyrus Najmabadi

Simplify

上级 a2110131
......@@ -113,14 +113,14 @@ internal abstract partial class AbstractFindUsagesService
// engine will push results into the 'progress' instance passed into it.
// We'll take those results, massage them, and forward them along to the
// FindReferencesContext instance we were given.
var normalFindReferencesTask = FindReferencesAsync(
context, symbol, project, options);
// Kick off work to search the online code index system in parallel
var codeIndexReferencesTask = FindSymbolMonikerReferencesAsync(
monikerUsagesService, symbol, context);
//
// Kick off work to search the online code index system in parallel.
//
// Do both in parallel so we can get all the results as soon as possible.
await Task.WhenAll(normalFindReferencesTask, codeIndexReferencesTask).ConfigureAwait(false);
await Task.WhenAll(
FindReferencesAsync(context, symbol, project, options),
FindSymbolMonikerReferencesAsync(monikerUsagesService, symbol, context)).ConfigureAwait(false);
}
public static async Task FindReferencesAsync(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册