(ctx context.Context, workspaceId string, tabIds []string)
| 374 | } |
| 375 | |
| 376 | func UpdateWorkspaceTabIds(ctx context.Context, workspaceId string, tabIds []string) error { |
| 377 | ws, _ := wstore.DBGet[*waveobj.Workspace](ctx, workspaceId) |
| 378 | if ws == nil { |
| 379 | return fmt.Errorf("workspace not found: %q", workspaceId) |
| 380 | } |
| 381 | ws.TabIds = tabIds |
| 382 | wstore.DBUpdate(ctx, ws) |
| 383 | return nil |
| 384 | } |
| 385 | |
| 386 | func ListWorkspaces(ctx context.Context) (waveobj.WorkspaceList, error) { |
| 387 | workspaces, err := wstore.DBGetAllObjsByType[*waveobj.Workspace](ctx, waveobj.OType_Workspace) |
no test coverage detected