提交 22423188 编写于 作者: H Heejae Chang

addressing PR feedback.

上级 01033341
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.Experiments;
using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Internal.Log;
using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.LanguageServices;
...@@ -77,15 +75,15 @@ protected AbstractAddImportFeatureService() ...@@ -77,15 +75,15 @@ protected AbstractAddImportFeatureService()
var documentOptions = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false); var documentOptions = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
if (result.IsDefault) if (!result.IsDefault)
{ {
return await GetFixesInCurrentProcessAsync( return result;
document, span, diagnosticId, placeSystemNamespaceFirst,
symbolSearchService, searchReferenceAssemblies,
packageSources, cancellationToken).ConfigureAwait(false);
} }
return result; return await GetFixesInCurrentProcessAsync(
document, span, diagnosticId, placeSystemNamespaceFirst,
symbolSearchService, searchReferenceAssemblies,
packageSources, cancellationToken).ConfigureAwait(false);
} }
private async Task<ImmutableArray<AddImportFixData>> GetFixesInCurrentProcessAsync( private async Task<ImmutableArray<AddImportFixData>> GetFixesInCurrentProcessAsync(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册