()
| 764 | muxLogDebug("mux: getWorkspacesForSidebar", { modeSetting }); |
| 765 | |
| 766 | const tryReadFromFiles = async (): Promise< |
| 767 | { workspaces: WorkspaceWithContext[] } | { error: string } |
| 768 | > => { |
| 769 | try { |
| 770 | return { workspaces: await getAllWorkspacesFromFiles() }; |
| 771 | } catch (error) { |
| 772 | return { error: formatError(error) }; |
| 773 | } |
| 774 | }; |
| 775 | |
| 776 | if (modeSetting === "file-only") { |
| 777 | const fileResult = await tryReadFromFiles(); |
no test coverage detected