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