1 instantiation of CompletionList
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionList.cs (1)
119return new CompletionList(defaultSpan, itemsList, rules, suggestionModeItem, isExclusive);
62 references to CompletionList
Microsoft.AspNetCore.App.Analyzers.Test (2)
TestDiagnosticAnalyzer.cs (2)
57var result = await completionService.GetCompletionsAsync(doc, caretPosition, completionTrigger); 177public record CompletionResult(Document Document, CompletionService Service, CompletionList Completions, TextSpan CompletionListSpan, bool ShouldTriggerCompletion);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (2)
1034var completionList = await GetCompletionListAsync(markup).ConfigureAwait(false); 1392var completionList = await GetCompletionListAsync(markup, workspaceKind: WorkspaceKind.Interactive).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (4)
IntelliSense\AsyncCompletion\CompletionSessionData.cs (2)
11using RoslynCompletionList = Microsoft.CodeAnalysis.Completion.CompletionList; 28public Task<(CompletionContext, RoslynCompletionList)>? ExpandedItemsTask { get; set; }
IntelliSense\AsyncCompletion\CompletionSource.cs (2)
369private async Task<(VSCompletionContext, CompletionList)> GetCompletionContextWorkerAsync( 412private static void UpdateSessionData(IAsyncCompletionSession session, CompletionSessionData sessionData, CompletionList completionList, SnapshotPoint triggerLocation)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (9)
Completion\AbstractCompletionProviderTests.cs (9)
132internal Task<CompletionList> GetCompletionListAsync( 192var completionList = await GetCompletionListAsync(completionService, document, position, trigger, options); 362protected async Task<CompletionList> GetCompletionListAsync(string markup, string workspaceKind = null) 613var completionList = await GetCompletionListAsync(service, document, position, RoslynCompletion.CompletionTrigger.Invoke); 737var completionList = await GetCompletionListAsync(service, document, position, RoslynCompletion.CompletionTrigger.Invoke); 966var completionList = await GetCompletionListAsync(completionService, document, position, triggerInfo, options); 1020var completionList = await GetCompletionListAsync(completionService, document, position, triggerInfo); 1050var completionList = await GetCompletionListAsync(completionService, document, position, triggerInfo); 1327var completionList = await GetCompletionListAsync(service, document, position, RoslynCompletion.CompletionTrigger.Invoke);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (2)
668Optional cancellationToken As CancellationToken = Nothing) As Task(Of CompletionList) 683Return CompletionList.Create(defaultItemSpan, builder.ToImmutableAndFree())
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Completion\OmniSharpCompletionService.cs (1)
28public static Task<CompletionList> GetCompletionsAsync(
Microsoft.CodeAnalysis.Features (26)
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"/> 96/// Creates a new <see cref="CompletionList"/> instance. 98/// <param name="defaultSpan">The span of the syntax element at the caret position when the <see cref="CompletionList"/> was created.</param> 103public static CompletionList Create( 112internal static CompletionList Create( 122private CompletionList With( 147/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="DefaultSpan"/> property changed. 150public CompletionList WithDefaultSpan(TextSpan span) 153public CompletionList WithSpan(TextSpan span) 158/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="Items"/> property changed. 160public CompletionList WithItems(ImmutableArray<CompletionItem> items) 165/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="ItemsList"/> property changed. 167internal CompletionList WithItemsList(IReadOnlyList<CompletionItem> itemsList) 171/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="Rules"/> property changed. 173public CompletionList WithRules(CompletionRules rules) 177/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="SuggestionModeItem"/> property changed. 179public CompletionList WithSuggestionModeItem(CompletionItem suggestionModeItem) 183/// The default <see cref="CompletionList"/> returned when no items are found to populate the list. 185public 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 (3)
37public Task<CompletionList> GetCompletionsAsync( 62internal virtual async Task<CompletionList> GetCompletionsAsync( 102return CompletionList.Empty;
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (2)
130var completionList = await service.GetCompletionsAsync( 147CompletionList completionList, WordSimilarityChecker similarityChecker)
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Handler\Completion\CompletionHandler.cs (6)
113private static async Task<(CompletionList CompletionList, bool IsIncomplete, bool isHardSelection, long ResultId)?> GetFilteredCompletionListAsync( 128(CompletionList List, long ResultId)? result; 167private static async Task<(CompletionList CompletionList, long ResultId)?> CalculateListAsync( 189private static (CompletionList CompletionList, bool IsIncomplete, bool isHardSelection) FilterCompletionList( 190CompletionList completionList, 243var newCompletionList = completionList.WithItemsList(filteredList);
Handler\Completion\CompletionListCache.cs (1)
20public record CacheEntry(CompletionList CompletionList);
Handler\Completion\CompletionResolveHandler.cs (1)
85CompletionList cachedCompletionList,
Handler\Completion\CompletionResultFactory.cs (1)
39CompletionList list,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Completion\CompletionFeaturesTests.cs (4)
593internal override async Task<CodeAnalysis.Completion.CompletionList> GetCompletionsAsync( 608return CodeAnalysis.Completion.CompletionList.Create(defaultItemSpan, builder.ToImmutable()); 886internal override async Task<CodeAnalysis.Completion.CompletionList> GetCompletionsAsync( 893return CodeAnalysis.Completion.CompletionList.Create(defaultItemSpan, ReturnedItems);
Completion\CompletionResolveTests.cs (2)
489internal override Task<CodeAnalysis.Completion.CompletionList> GetCompletionsAsync(Document document, 495CancellationToken cancellationToken = default) => Task.FromResult(CodeAnalysis.Completion.CompletionList.Empty);
Completion\CompletionTests.cs (1)
640var completionList = cache.GetCachedEntry(0).CompletionList;