Refactoring

This commit is contained in:
Thorsten Sommer 2026-02-26 10:54:52 +01:00
parent e255f66211
commit d9a0ceae04
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108
4 changed files with 11 additions and 7 deletions

View File

@ -10,12 +10,6 @@ using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tools;
public readonly record struct WorkspaceTreeChat(Guid WorkspaceId, Guid ChatId, string ChatPath, string Name, DateTimeOffset LastEditTime, bool IsTemporary);
public readonly record struct WorkspaceTreeWorkspace(Guid WorkspaceId, string WorkspacePath, string Name, bool ChatsLoaded, IReadOnlyList<WorkspaceTreeChat> Chats);
public readonly record struct WorkspaceTreeCacheSnapshot(IReadOnlyList<WorkspaceTreeWorkspace> Workspaces, IReadOnlyList<WorkspaceTreeChat> TemporaryChats);
public static class WorkspaceBehaviour
{
private sealed class WorkspaceChatCacheEntry
@ -652,4 +646,4 @@ public static class WorkspaceBehaviour
public static async Task EnsureBiasWorkspace() => await EnsureWorkspace(KnownWorkspaces.BIAS_WORKSPACE_ID, "Bias of the Day");
public static async Task EnsureERIServerWorkspace() => await EnsureWorkspace(KnownWorkspaces.ERI_SERVER_WORKSPACE_ID, "ERI Servers");
}
}

View File

@ -0,0 +1,3 @@
namespace AIStudio.Tools;
public readonly record struct WorkspaceTreeCacheSnapshot(IReadOnlyList<WorkspaceTreeWorkspace> Workspaces, IReadOnlyList<WorkspaceTreeChat> TemporaryChats);

View File

@ -0,0 +1,4 @@
// ReSharper disable NotAccessedPositionalProperty.Global
namespace AIStudio.Tools;
public readonly record struct WorkspaceTreeChat(Guid WorkspaceId, Guid ChatId, string ChatPath, string Name, DateTimeOffset LastEditTime, bool IsTemporary);

View File

@ -0,0 +1,3 @@
namespace AIStudio.Tools;
public readonly record struct WorkspaceTreeWorkspace(Guid WorkspaceId, string WorkspacePath, string Name, bool ChatsLoaded, IReadOnlyList<WorkspaceTreeChat> Chats);