26 references to SortOption
Microsoft.VisualStudio.LanguageServices (26)
DocumentOutline\DocumentOutlineOptionsStorage.cs (2)
18
public static readonly Option2<
SortOption
> DocumentOutlineSortOrder = new("visual_studio_document_outline_sort_order", defaultValue:
SortOption
.Location);
DocumentOutline\DocumentOutlineView.xaml.cs (14)
104
if (_viewModel.SortOption ==
SortOption
.Name)
111
if (_viewModel.SortOption ==
SortOption
.Location)
118
if (_viewModel.SortOption ==
SortOption
.Type)
150
UpdateSort(
SortOption
.Name, userSelected: true);
154
UpdateSort(
SortOption
.Location, userSelected: true);
158
UpdateSort(
SortOption
.Type, userSelected: true);
205
private void UpdateSort(
SortOption
sortOption, bool userSelected)
214
SortOption
.Name => FunctionId.DocumentOutline_SortByName,
215
SortOption
.Location => FunctionId.DocumentOutline_SortByOrder,
216
SortOption
.Type => FunctionId.DocumentOutline_SortByType,
258
public static void UpdateSortDescription(SortDescriptionCollection sortDescriptions,
SortOption
sortOption)
263
SortOption
.Name => NameSortDescriptions,
264
SortOption
.Location => LocationSortDescriptions,
265
SortOption
.Type => TypeSortDescriptions,
DocumentOutline\DocumentOutlineViewModel.cs (4)
60
private
SortOption
_sortOption_doNotAccessDirectly =
SortOption
.Location;
190
public
SortOption
SortOption
295
var
sortOption = this.SortOption;
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (1)
175
SortOption
sortOption,
DocumentOutline\DocumentSymbolDataViewModelSorter.cs (5)
25
values[1] is
SortOption
sortOption)
33
public static IComparer<DocumentSymbolDataViewModel> GetComparer(
SortOption
sortOption)
36
SortOption
.Name => NameComparer.Instance,
37
SortOption
.Type => TypeComparer.Instance,
38
SortOption
.Location => LocationComparer.Instance,