1 write to _snapshotData
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
79
_snapshotData
= snapshotData;
22 references to _snapshotData
Microsoft.CodeAnalysis.EditorFeatures (22)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (22)
61
=>
_snapshotData
.DisplaySuggestionItem && _filterText.Length > 0;
63
private CompletionTriggerReason InitialTriggerReason =>
_snapshotData
.InitialTrigger.Reason;
64
private CompletionTriggerReason UpdateTriggerReason =>
_snapshotData
.Trigger.Reason;
83
_filterText = applicableToSpan.GetText(
_snapshotData
.Snapshot);
85
_hasSuggestedItemOptions = _sessionData.HasSuggestionItemOptions ||
_snapshotData
.DisplaySuggestionItem;
89
var snapshotForDocument = TryGetInitialTriggerLocation(
_snapshotData
, out var initialTriggerLocation)
91
:
_snapshotData
.Snapshot;
220
if (_filterText.Length > 0 && char.IsNumber(_filterText[0]) && !IsAfterDot(
_snapshotData
.Snapshot, _applicableToSpan))
248
var filterHelper = new FilterStateHelper(
_snapshotData
.SelectedFilters);
256
Enumerable.Range(0,
_snapshotData
.InitialSortedItemList.Count)
266
var item =
_snapshotData
.InitialSortedItemList[index];
285
if (!
_snapshotData
.Defaults.IsEmpty)
296
if (
_snapshotData
.Defaults.IndexOf(matchResult.CompletionItem.FilterText) >= 0)
318
var defaultIndex =
_snapshotData
.Defaults.IndexOf(completionItem.FilterText);
338
=> i -
_snapshotData
.Defaults.Length;
414
var typedChar =
_snapshotData
.Trigger.Character;
448
return
_snapshotData
.InitialSortedItemList[matchResult.IndexInOriginalSortedOrder];
455
var unpromotedVsItem =
_snapshotData
.InitialSortedItemList[unpromotedIndex];
652
filters:
_snapshotData
.SelectedFilters, selectionHint: UpdateSelectionHint.SoftSelected, centerSelection: true, uniqueItem: null);
670
return
_snapshotData
.SelectedFilters.SelectAsArray(n => n.WithAvailability(n.Filter is CompletionExpander || filters.Contains(n.Filter)));
835
if (
_snapshotData
.Defaults.IsDefaultOrEmpty || itemSelection.SelectedItemIndex == SuggestionItemIndex)
904
var defaultIndex =
_snapshotData
.Defaults.IndexOf(matches[i].CompletionItem.FilterText);