diff --git a/src/Features/Core/Portable/AddImport/AbstractAddImportFeatureService.cs b/src/Features/Core/Portable/AddImport/AbstractAddImportFeatureService.cs index f7b36aee913e97ff8184b3be8a078b1571f14b25..1770a9ad7cad65bb55832d8b9cb286aa777b018f 100644 --- a/src/Features/Core/Portable/AddImport/AbstractAddImportFeatureService.cs +++ b/src/Features/Core/Portable/AddImport/AbstractAddImportFeatureService.cs @@ -7,8 +7,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.CodeAnalysis.Editing; -using Microsoft.CodeAnalysis.Experiments; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.LanguageServices; @@ -77,15 +75,15 @@ protected AbstractAddImportFeatureService() var documentOptions = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false); - if (result.IsDefault) + if (!result.IsDefault) { - return await GetFixesInCurrentProcessAsync( - document, span, diagnosticId, placeSystemNamespaceFirst, - symbolSearchService, searchReferenceAssemblies, - packageSources, cancellationToken).ConfigureAwait(false); + return result; } - return result; + return await GetFixesInCurrentProcessAsync( + document, span, diagnosticId, placeSystemNamespaceFirst, + symbolSearchService, searchReferenceAssemblies, + packageSources, cancellationToken).ConfigureAwait(false); } private async Task> GetFixesInCurrentProcessAsync(