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