store each solutions open tabs

This commit is contained in:
Matt Parker
2025-10-22 20:15:04 +10:00
parent 7ac3947563
commit 2e9598b217
4 changed files with 30 additions and 2 deletions

View File

@@ -16,4 +16,5 @@ public record RecentSln
{
public required string Name { get; set; }
public required string FilePath { get; set; }
public IdeSolutionState IdeSolutionState { get; set; } = new IdeSolutionState();
}

View File

@@ -0,0 +1,13 @@
namespace SharpIDE.Godot.Features.IdeSettings;
public class IdeSolutionState
{
public List<OpenTab> OpenTabs { get; set; } = [];
}
public class OpenTab
{
public required string FilePath { get; set; }
public required int CaretLine { get; set; }
public required int CaretColumn { get; set; }
}