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

Function dispose

tests/ui/chat/newChatStreamingFlash.test.ts:61–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 view,
60 chat,
61 async dispose() {
62 const workspaces = await env.orpc.workspace.list({ archived: false }).catch(() => []);
63 await Promise.all(
64 workspaces
65 .filter((workspace) => workspace.projectPath === projectPath)
66 .map((workspace) =>
67 env.orpc.workspace.remove({ workspaceId: workspace.id, options: { force: true } })
68 )
69 );
70 await cleanupView(view, cleanupDom);
71 await cleanupTestEnvironment(env);
72 await cleanupTempGitRepo(repoPath);
73 },
74 };
75 } catch (error) {
76 cleanupDom();

Callers

nothing calls this directly

Calls 5

cleanupViewFunction · 0.90
cleanupTestEnvironmentFunction · 0.90
cleanupTempGitRepoFunction · 0.90
removeMethod · 0.65
listMethod · 0.45

Tested by

no test coverage detected