1 type derived from NavigationBarItem
Microsoft.CodeAnalysis.EditorFeatures (1)
Extensibility\NavigationBar\WrappedNavigationBarItem.cs (1)
19internal sealed class WrappedNavigationBarItem : NavigationBarItem, IEquatable<WrappedNavigationBarItem>
43 references to NavigationBarItem
Microsoft.CodeAnalysis.EditorFeatures (43)
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (6)
30public async Task<ImmutableArray<NavigationBarItem>> GetItemsAsync( 39return items.SelectAsArray(v => (NavigationBarItem)new WrappedNavigationBarItem(textVersion, v)); 42public Task<bool> TryNavigateToItemAsync(Document document, NavigationBarItem item, ITextView textView, ITextVersion textVersion, CancellationToken cancellationToken) 46Document document, NavigationBarItem item, SymbolItem symbolItem, ITextVersion textVersion, CancellationToken cancellationToken) 73NavigationBarItem item, 95public bool ShowItemGrayedIfNear(NavigationBarItem item)
Extensibility\NavigationBar\INavigationBarItemService.cs (3)
16Task<ImmutableArray<NavigationBarItem>> GetItemsAsync( 22bool ShowItemGrayedIfNear(NavigationBarItem item); 28Document document, NavigationBarItem item, ITextView view, ITextVersion textVersion, CancellationToken cancellationToken);
Extensibility\NavigationBar\INavigationBarPresenter.cs (3)
18ImmutableArray<NavigationBarItem> typesWithMembers, 19NavigationBarItem? selectedType, 20NavigationBarItem? selectedMember);
Extensibility\NavigationBar\NavigationBarItem.cs (4)
21ImmutableArray<NavigationBarItem> childItems = default, 24bool grayed = false) : IEquatable<NavigationBarItem> 31public ImmutableArray<NavigationBarItem> ChildItems { get; } = childItems.NullToEmpty(); 46public bool Equals(NavigationBarItem? other)
Extensibility\NavigationBar\NavigationBarItemSelectedEventArgs.cs (2)
9internal sealed class NavigationBarItemSelectedEventArgs(NavigationBarItem item) : EventArgs 11public NavigationBarItem Item { get; } = item;
Extensibility\NavigationBar\NavigationBarSelectedItems.cs (6)
10NavigationBarItem? typeItem, 12NavigationBarItem? memberItem, 17public NavigationBarItem? TypeItem { get; } = typeItem; 19public NavigationBarItem? MemberItem { get; } = memberItem; 22public NavigationBarSelectedTypeAndMember(NavigationBarItem? typeItem, NavigationBarItem? memberItem)
Extensibility\NavigationBar\SimpleNavigationBarItem.cs (1)
12internal sealed class SimpleNavigationBarItem(ITextVersion textVersion, string text, Glyph glyph, ImmutableArray<TextSpan> spans, ImmutableArray<NavigationBarItem> childItems, int indent, bool bolded, bool grayed) : NavigationBarItem(textVersion, text, glyph, spans, childItems, indent, bolded, grayed), IEquatable<SimpleNavigationBarItem>
Extensibility\NavigationBar\WrappedNavigationBarItem.cs (2)
16/// Implementation of the editor layer <see cref="NavigationBarItem"/> that wraps a feature layer <see cref="RoslynNavigationBarItem"/> 29underlyingItem.ChildItems.SelectAsArray(static (v, textVersion) => (NavigationBarItem)new WrappedNavigationBarItem(textVersion, v), textVersion),
ExternalAccess\VSTypeScript\VSTypeScriptNavigationBarItemService.cs (6)
32public Task<ImmutableArray<NavigationBarItem>> GetItemsAsync( 39async Task<ImmutableArray<NavigationBarItem>> INavigationBarItemService.GetItemsAsync( 50private static ImmutableArray<NavigationBarItem> ConvertItems(ImmutableArray<VSTypescriptNavigationBarItem> items, ITextVersion textVersion) 54Document document, NavigationBarItem item, ITextView view, ITextVersion textVersion, CancellationToken cancellationToken) 65public bool ShowItemGrayedIfNear(NavigationBarItem item) 70private static NavigationBarItem ConvertToNavigationBarItem(VSTypescriptNavigationBarItem item, ITextVersion textVersion)
NavigationBar\NavigationBarController.cs (2)
273private async Task OnItemSelectedAsync(NavigationBarItem item) 294private async Task ProcessItemSelectionAsync(NavigationBarItem item, CancellationToken cancellationToken)
NavigationBar\NavigationBarController_ModelComputation.cs (6)
213private static (NavigationBarItem? item, bool gray) GetMatchingItem( 214ImmutableArray<NavigationBarItem> items, int point, INavigationBarItemService itemsService, CancellationToken cancellationToken) 216NavigationBarItem? exactItem = null; 218NavigationBarItem? nextItem = null; 221foreach (var item in items) 256var itemToGray = nextItem ?? items.LastOrDefault();
NavigationBar\NavigationBarModel.cs (2)
11internal sealed class NavigationBarModel(INavigationBarItemService itemService, ImmutableArray<NavigationBarItem> types) : IEquatable<NavigationBarModel> 14public ImmutableArray<NavigationBarItem> Types { get; } = types;