nav history v2

This commit is contained in:
Matt Parker
2025-10-29 20:40:13 +10:00
parent 45946bce8c
commit c3069b0e41
5 changed files with 33 additions and 3 deletions

View File

@@ -29,6 +29,13 @@ public class IdeNavigationHistoryService
_forwardStack.Clear();
}
public void ClearHistory()
{
_backStack.Clear();
_forwardStack.Clear();
_current = null;
}
public void GoBack()
{
if (!CanGoBack) throw new InvalidOperationException("Cannot go back, no history available.");