MCPcopy
hub / github.com/coder/mux / tryReadFromFiles

Function tryReadFromFiles

vscode/src/extension.ts:766–774  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 1

getWorkspacesForSidebarFunction · 0.85

Calls 2

formatErrorFunction · 0.70

Tested by

no test coverage detected