17 references to ExpansionOption
Microsoft.VisualStudio.LanguageServices (13)
DocumentOutline\DocumentOutlineControl.xaml.cs (5)
79
private readonly AsyncBatchingWorkQueue<
ExpansionOption
> _highlightExpandAndPresentItemsQueue;
117
_highlightExpandAndPresentItemsQueue = new AsyncBatchingWorkQueue<
ExpansionOption
>(
214
EnqueueHighlightExpandAndPresentItemsTask(
ExpansionOption
.CurrentExpansion);
218
=> EnqueueHighlightExpandAndPresentItemsTask(
ExpansionOption
.Expand);
221
=> EnqueueHighlightExpandAndPresentItemsTask(
ExpansionOption
.Collapse);
DocumentOutline\DocumentOutlineControl_ModelComputation.cs (5)
137
EnqueueHighlightExpandAndPresentItemsTask(
ExpansionOption
.NoChange);
146
private void EnqueueHighlightExpandAndPresentItemsTask(
ExpansionOption
expansionOption)
154
private async ValueTask HighlightExpandAndPresentItemsAsync(ImmutableSegmentedList<
ExpansionOption
> expansionOption, CancellationToken cancellationToken)
182
var
expansion = expansionOption.Last();
183
if (expansion is not
ExpansionOption
.NoChange && SymbolTree.ItemsSource is not null)
DocumentOutline\DocumentOutlineHelper.cs (3)
315
ExpansionOption
expansionOption)
319
if (expansionOption is
ExpansionOption
.CurrentExpansion)
322
documentSymbolItems[i].IsExpanded = expansionOption is
ExpansionOption
.Expand;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
DocumentOutline\DocumentOutlineTests.cs (4)
187
DocumentOutlineHelper.SetIsExpanded(updatedUIItems, originalUIItems,
ExpansionOption
.Collapse);
191
DocumentOutlineHelper.SetIsExpanded(updatedUIItems, originalUIItems,
ExpansionOption
.Expand);
200
DocumentOutlineHelper.SetIsExpanded(updatedUIItems, originalUIItems,
ExpansionOption
.CurrentExpansion);
230
DocumentOutlineHelper.SetIsExpanded(uiItems, uiItems,
ExpansionOption
.Collapse);