2 instantiations of CompletionList
Microsoft.CodeAnalysis.Features (2)
Completion\CompletionList.cs (2)
116return new CompletionList(defaultSpan, itemsList, rules, suggestionModeItem, isExclusive); 182public static readonly CompletionList Empty = new(
73 references to CompletionList
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (14)
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (1)
173var completionList = await GetCompletionListAsync(service, document, position, RoslynTrigger.Invoke);
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
446var completionList = await GetCompletionListAsync(service, document, hostDocument.CursorPosition!.Value, RoslynTrigger.Invoke);
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (2)
625var completionList = await GetCompletionListAsync(service, document, position, triggerInfo); 1197var completionList = await GetCompletionListAsync(service, document, position, triggerInfo);
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (6)
2488var completionList = await GetCompletionListAsync(service, document, position, triggerInfo); 2745var completionList = await GetCompletionListAsync(service, document, position, triggerInfo); 2801var completionList = await GetCompletionListAsync(service, document, cursorPosition, triggerInfo); 3084var completionList = await GetCompletionListAsync(service, document, testDocument.CursorPosition.Value, CompletionTrigger.Invoke); 3222var completionList = await GetCompletionListAsync(service, document, testDocument.CursorPosition.Value, CompletionTrigger.Invoke); 3276var completionList = await GetCompletionListAsync(service, document, testDocument.CursorPosition.Value, CompletionTrigger.Invoke);
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
340var completions = await service.GetCompletionsAsync(document, position, options, OptionSet.Empty);
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (2)
1031var completionList = await GetCompletionListAsync(markup).ConfigureAwait(false); 1394var completionList = await GetCompletionListAsync(markup, workspaceKind: WorkspaceKind.Interactive).ConfigureAwait(false);
Completion\CompletionServiceTests.cs (1)
190var completionList = await completionService.GetCompletionsAsync(document, position.Value, options, OptionSet.Empty);
Microsoft.CodeAnalysis.EditorFeatures (5)
IntelliSense\AsyncCompletion\CompletionSessionData.cs (2)
11using RoslynCompletionList = Microsoft.CodeAnalysis.Completion.CompletionList; 28public Task<(CompletionContext, RoslynCompletionList)>? ExpandedItemsTask { get; set; }
IntelliSense\AsyncCompletion\CompletionSource.cs (3)
430private async Task<(VSCompletionContext, CompletionList)> GetCompletionContextWorkerAsync( 452var completionList = await completionService.GetCompletionsAsync( 471private static void UpdateSessionData(IAsyncCompletionSession session, CompletionSessionData sessionData, CompletionList completionList, SnapshotPoint triggerLocation)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (10)
Completion\AbstractCompletionProviderTests.cs (10)
128internal Task<CompletionList> GetCompletionListAsync( 160var completionList = await GetCompletionListAsync(completionService, document, position, trigger, options); 265protected async Task<CompletionList> GetCompletionListAsync(string markup, string workspaceKind = null) 464var completionList = await GetCompletionListAsync(service, document, position, RoslynCompletion.CompletionTrigger.Invoke); 587var completionList = await GetCompletionListAsync(service, document, position, RoslynCompletion.CompletionTrigger.Invoke); 817var completionList = await GetCompletionListAsync(completionService, document, position, triggerInfo, options); 873var completionList = await GetCompletionListAsync(completionService, document, position, triggerInfo); 905var completionList = await GetCompletionListAsync(completionService, document, position, triggerInfo); 1103var completionList = await GetCompletionListAsync(service, document, position, RoslynCompletion.CompletionTrigger.Invoke); 1135var completionList = await GetCompletionListAsync(completionService, document, position, trigger);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
49var completions = await completionService.GetCompletionsAsync(document, caretPosition, CompletionOptions.Default, OptionSet.Empty);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Completion\OmniSharpCompletionService.cs (1)
28public static Task<CompletionList> GetCompletionsAsync(
Microsoft.CodeAnalysis.Features (30)
Completion\CompletionList.cs (20)
36/// The span of the syntax element at the caret position when the <see cref="CompletionList"/> was created. 43/// The span of the syntax element at the caret position when the <see cref="CompletionList"/> 93/// Creates a new <see cref="CompletionList"/> instance. 95/// <param name="defaultSpan">The span of the syntax element at the caret position when the <see cref="CompletionList"/> was created.</param> 100public static CompletionList Create( 109internal static CompletionList Create( 119private CompletionList With( 144/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="DefaultSpan"/> property changed. 147public CompletionList WithDefaultSpan(TextSpan span) 150public CompletionList WithSpan(TextSpan span) 155/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="Items"/> property changed. 157public CompletionList WithItems(ImmutableArray<CompletionItem> items) 162/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="ItemsList"/> property changed. 164internal CompletionList WithItemsList(IReadOnlyList<CompletionItem> itemsList) 168/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="Rules"/> property changed. 170public CompletionList WithRules(CompletionRules rules) 174/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="SuggestionModeItem"/> property changed. 176public CompletionList WithSuggestionModeItem(CompletionItem suggestionModeItem) 180/// The default <see cref="CompletionList"/> returned when no items are found to populate the list. 182public static readonly CompletionList Empty = new(
Completion\CompletionProvider.cs (1)
25/// Implement to contribute <see cref="CompletionItem"/>'s and other details to a <see cref="CompletionList"/>
Completion\CompletionService_GetCompletions.cs (7)
35public Task<CompletionList> GetCompletionsAsync( 59internal virtual Task<CompletionList> GetCompletionsAsync( 87private async Task<CompletionList> GetCompletionsWithAvailabilityOfExpandedItemsAsync( 126return CompletionList.Empty; 256private CompletionList MergeAndPruneCompletionLists( 283return CompletionList.Empty; 286return CompletionList.Create(
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (2)
130var completionList = await service.GetCompletionsAsync( 153CompletionList completionList, WordSimilarityChecker similarityChecker)
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Handler\Completion\CompletionHandler.cs (7)
299private async Task<(CompletionList CompletionList, bool IsIncomplete, long ResultId)?> GetFilteredCompletionListAsync( 314(CompletionList List, long ResultId)? result; 341private static async Task<(CompletionList CompletionList, long ResultId)?> CalculateListAsync( 351var completionList = await completionService.GetCompletionsAsync(document, position, completionOptions, document.Project.Solution.Options, completionTrigger, cancellationToken: cancellationToken).ConfigureAwait(false); 364private static (CompletionList CompletionList, bool IsIncomplete) FilterCompletionList( 365CompletionList completionList, 402var newCompletionList = completionList.WithItems(filteredList);
Handler\Completion\CompletionListCache.cs (1)
21public record CacheEntry(LSP.TextDocumentIdentifier TextDocument, CompletionList CompletionList);
Handler\Completion\CompletionResolveHandler.cs (1)
65var list = cacheEntry.CompletionList;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Completion\CompletionResolveTests.cs (2)
442internal override Task<CodeAnalysis.Completion.CompletionList> GetCompletionsAsync(Document document, 448CancellationToken cancellationToken = default) => Task.FromResult(CodeAnalysis.Completion.CompletionList.Empty);
Completion\CompletionTests.cs (1)
545var completionList = cache.GetCachedEntry(0).CompletionList;