diff --git a/src/VisualStudio/Core/Def/Commands.vsct b/src/VisualStudio/Core/Def/Commands.vsct
index acae0dfe7107b..a6e3826dd285a 100644
--- a/src/VisualStudio/Core/Def/Commands.vsct
+++ b/src/VisualStudio/Core/Def/Commands.vsct
@@ -68,6 +68,10 @@
+
+
+
+
@@ -533,6 +537,71 @@
ClearStackTraceExplorer
+
+
+
+
+
+
+
+
+
+
@@ -618,6 +687,15 @@
StackTrace Explorer
+
+
+
@@ -780,6 +858,14 @@
+
+
+
+
+
+
+
+
diff --git a/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineOptionsStorage.cs b/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineOptionsStorage.cs
index 4f20a737432db..7d41c9ec82b30 100644
--- a/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineOptionsStorage.cs
+++ b/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineOptionsStorage.cs
@@ -12,5 +12,7 @@ namespace Microsoft.VisualStudio.LanguageServices.DocumentOutline
internal sealed class DocumentOutlineOptionsStorage
{
public static readonly Option2 EnableDocumentOutline = new("visual_studio_enable_document_outline", defaultValue: false);
+
+ public static readonly Option2 DocumentOutlineSortOrder = new("visual_studio_document_outline_sort_order", defaultValue: SortOption.Location);
}
}
diff --git a/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineStrings.cs b/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineStrings.cs
index 1d063a14ab79a..b9402a4af0609 100644
--- a/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineStrings.cs
+++ b/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineStrings.cs
@@ -6,22 +6,7 @@ namespace Microsoft.VisualStudio.LanguageServices.DocumentOutline
{
internal static class DocumentOutlineStrings
{
- public static string Document_Outline_Search
- => ServicesVSResources.Document_Outline_Search;
-
- public static string Document_Outline_Expand_All
- => ServicesVSResources.Document_Outline_Expand_All;
-
- public static string Document_Outline_Collapse_All
- => ServicesVSResources.Document_Outline_Collapse_All;
-
- public static string Document_Outline_Sort_Name
- => ServicesVSResources.Document_Outline_Sort_Name;
-
- public static string Document_Outline_Sort_Order
- => ServicesVSResources.Document_Outline_Sort_Order;
-
- public static string Document_Outline_Sort_Type
- => ServicesVSResources.Document_Outline_Sort_Type;
+ public static string Document_Outline
+ => ServicesVSResources.Document_Outline;
}
}
diff --git a/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineView.xaml b/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineView.xaml
index b287ded7f6353..30c0e9a4a4b53 100644
--- a/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineView.xaml
+++ b/src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineView.xaml
@@ -72,61 +72,12 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+