1 write to ItemsList
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionList.cs (1)
82ItemsList = itemsList;
128 references to ItemsList
Microsoft.AspNetCore.App.Analyzers.Test (93)
Dependencies\ExtensionMethodsCompletionProviderTests.cs (6)
40Assert.Contains(result.Completions.ItemsList, item => item.DisplayText == "AddOpenApi"); 63Assert.Contains(result.Completions.ItemsList, item => item.DisplayText == "AddOpenApi"); 86Assert.DoesNotContain(result.Completions.ItemsList, item => item.DisplayText == "AddOpenApi"); 109Assert.Contains(result.Completions.ItemsList, item => item.DisplayText == "MapOpenApi"); 132Assert.Contains(result.Completions.ItemsList, item => item.DisplayText == "MapOpenApi"); 155Assert.DoesNotContain(result.Completions.ItemsList, item => item.DisplayText == "MapOpenApi");
RouteEmbeddedLanguage\FrameworkParametersCompletionProviderTests.cs (49)
34result.Completions.ItemsList, 37var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 62result.Completions.ItemsList, 65var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 90result.Completions.ItemsList, 93var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 118result.Completions.ItemsList, 121var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 148result.Completions.ItemsList, 151var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 176result.Completions.ItemsList, 179var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 204result.Completions.ItemsList, 207var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 232result.Completions.ItemsList, 235var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 260result.Completions.ItemsList, 263var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 287Assert.Empty(result.Completions.ItemsList); 309Assert.Empty(result.Completions.ItemsList); 333result.Completions.ItemsList, 358result.Completions.ItemsList, 381Assert.Empty(result.Completions.ItemsList); 404result.Completions.ItemsList, 428result.Completions.ItemsList, 453result.Completions.ItemsList, 476Assert.Empty(result.Completions.ItemsList); 498Assert.Empty(result.Completions.ItemsList); 530result.Completions.ItemsList, 563result.Completions.ItemsList, 595Assert.Empty(result.Completions.ItemsList); 621Assert.Empty(result.Completions.ItemsList); 659result.Completions.ItemsList, 696Assert.Empty(result.Completions.ItemsList); 723Assert.Empty(result.Completions.ItemsList); 746result.Completions.ItemsList, 776Assert.Empty(result.Completions.ItemsList); 800result.Completions.ItemsList, 823Assert.Empty(result.Completions.ItemsList); 845var item = result.Completions.ItemsList.FirstOrDefault(i => i.DisplayText == "id"); 874result.Completions.ItemsList, 902Assert.Empty(result.Completions.ItemsList); 934result.Completions.ItemsList, 964result.Completions.ItemsList, 994result.Completions.ItemsList, 997var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 1027Assert.Empty(result.Completions.ItemsList); 1059result.Completions.ItemsList, 1091Assert.Empty(result.Completions.ItemsList);
RouteEmbeddedLanguage\RoutePatternCompletionProviderTests.cs (38)
63Assert.NotEmpty(result.Completions.ItemsList); 64Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 66var description = await result.Service.GetDescriptionAsync(result.Document, result.Completions.ItemsList[0]); 69var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 94Assert.NotEmpty(result.Completions.ItemsList); 95Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 119Assert.NotEmpty(result.Completions.ItemsList); 120Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 122var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 148Assert.NotEmpty(result.Completions.ItemsList); 149Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 151var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 177Assert.NotEmpty(result.Completions.ItemsList); 178Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 180var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 209Assert.NotEmpty(result.Completions.ItemsList); 210Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 234Assert.Empty(result.Completions.ItemsList); 257result.Completions.ItemsList, 282result.Completions.ItemsList, 311result.Completions.ItemsList, 340result.Completions.ItemsList, 369result.Completions.ItemsList, 405result.Completions.ItemsList, 445result.Completions.ItemsList, 469Assert.Empty(result.Completions.ItemsList); 491Assert.Empty(result.Completions.ItemsList); 519result.Completions.ItemsList, 547Assert.Empty(result.Completions.ItemsList); 574Assert.Empty(result.Completions.ItemsList); 602result.Completions.ItemsList, 635result.Completions.ItemsList, 657Assert.NotEmpty(result.Completions.ItemsList); 658Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 679Assert.NotEmpty(result.Completions.ItemsList); 680Assert.Equal("alpha", result.Completions.ItemsList[0].DisplayText); 705Assert.NotEmpty(result.Completions.ItemsList); 706Assert.Equal("bool", result.Completions.ItemsList[0].DisplayText);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (2)
1035AssertRelativeOrder(["SomeType", "SomeTypeWithLongerName"], completionList.ItemsList.ToImmutableArray()); 1393Assert.NotEmpty(completionList.ItemsList);
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
426var excludedCommitCharactersFromList = GetExcludedCommitCharacters(completionList.ItemsList);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (9)
Completion\AbstractCompletionProviderTests.cs (9)
193var items = completionList.ItemsList; 614var items = completionList.ItemsList; 738var items = completionList.ItemsList; 971AssertEx.Any(completionList.ItemsList, c => CompareItems(c.DisplayText, expectedItem)); 973var item = completionList.ItemsList.First(c => CompareItems(c.DisplayText, expectedItem)); 989AssertEx.None(completionList.ItemsList, c => CompareItems(c.DisplayText, expectedItem)); 1022var item = completionList.ItemsList.FirstOrDefault(i => i.DisplayText == expectedItem); 1052var item = completionList.ItemsList.Single(c => c.DisplayText == expectedItem); 1328var item = completionList.ItemsList.First(i => i.DisplayText.StartsWith(textTypedSoFar));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (7)
IntelliSense\CompletionServiceTests.vb (3)
42Assert.NotEmpty(list.ItemsList) 43Assert.True(list.ItemsList.Count = 1, "Completion list contained more than one item") 44Assert.Equal("Completion Item From Test Completion Provider", list.ItemsList.First.DisplayText)
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (4)
47Assert.NotEmpty(list.ItemsList) 48Assert.True(list.ItemsList.Count = 2, "Completion List does not contain exactly two items.") 49Assert.Equal(String.Format(CompletionItemExclusive, 2), list.ItemsList.First.DisplayText) 50Assert.Equal(String.Format(CompletionItemExclusive, 3), list.ItemsList.Last.DisplayText)
Microsoft.CodeAnalysis.Features (9)
Completion\CompletionList.cs (7)
24[Obsolete($"This property is obsolete. Use {nameof(ItemsList)} instead", error: false)] 83_lazyItems = new(() => ItemsList.ToImmutableArrayOrEmpty(), System.Threading.LazyThreadSafetyMode.PublicationOnly); 89foreach (var item in ItemsList) 129var newItemsList = itemsList.HasValue ? itemsList.Value : ItemsList; 134newItemsList == ItemsList && 165/// Creates a copy of this <see cref="CompletionList"/> with the <see cref="ItemsList"/> property changed. 189internal bool IsEmpty => ItemsList.Count == 0 && SuggestionModeItem is null;
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (2)
132if (completionList.ItemsList.IsEmpty()) 155foreach (var item in completionList.ItemsList)
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Handler\Completion\CompletionHandler.cs (4)
211if (completionListMaxSize < 0 || completionListMaxSize >= completionList.ItemsList.Count) 218foreach (var item in completionList.ItemsList) 258? completionList.ItemsList.Count > newCompletionList.ItemsList.Count
Handler\Completion\CompletionResolveHandler.cs (1)
92var roslynItem = cachedCompletionList.ItemsList
Handler\Completion\CompletionResultFactory.cs (2)
46if (list.ItemsList.Count == 0) 75foreach (var item in list.ItemsList)