Skip to content

Commit

Permalink
Merge pull request #62898 from antomys/dev/antomys/completionoptions-…
Browse files Browse the repository at this point in the history
…rename

Renamed `ShouldShowItemsFromUnimportNamspaces` to `ShouldShowItemsFromUnimportedNamespaces`
  • Loading branch information
genlu committed Jul 25, 2022
2 parents 5fb47b1 + f2207c4 commit 4bbd4bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ internal sealed class CompletionSource : IAsyncExpandingCompletionSource

var sessionData = CompletionSessionData.GetOrCreateSessionData(session);

if (!options.ShouldShowItemsFromUnimportNamspaces())
if (!options.ShouldShowItemsFromUnimportedNamespaces())
{
// No need to trigger expanded providers at all if the feature is disabled, just trigger core providers and return;
var (context, list) = await GetCompletionContextWorkerAsync(document, trigger, triggerLocation,
Expand Down
2 changes: 1 addition & 1 deletion src/Features/Core/Portable/Completion/CompletionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public RecommendationServiceOptions ToRecommendationServiceOptions()
/// This takes into consideration the experiment we are running in addition to the value
/// from user facing options.
/// </summary>
public bool ShouldShowItemsFromUnimportNamspaces()
public bool ShouldShowItemsFromUnimportedNamespaces()
{
// Don't trigger import completion if the option value is "default" and the experiment is disabled for the user.
return ShowItemsFromUnimportedNamespaces ?? TypeImportCompletion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Task NotifyCommittingItemAsync(Document document, CompletionItem item, ch

public override async Task ProvideCompletionsAsync(CompletionContext completionContext)
{
if (!completionContext.CompletionOptions.ShouldShowItemsFromUnimportNamspaces())
if (!completionContext.CompletionOptions.ShouldShowItemsFromUnimportedNamespaces())
return;

var cancellationToken = completionContext.CancellationToken;
Expand Down

0 comments on commit 4bbd4bf

Please sign in to comment.