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

Function findWorkspaceEntry

src/node/services/taskUtils.ts:60–72  ·  view source on GitHub ↗
(
  config: ReturnType<Config["loadConfigOrDefault"]>,
  workspaceId: string
)

Source from the content-addressed store, hash-verified

58}
59
60export function findWorkspaceEntry(
61 config: ReturnType<Config["loadConfigOrDefault"]>,
62 workspaceId: string
63): { projectPath: string; workspace: WorkspaceConfigEntry } | null {
64 for (const [projectPath, project] of config.projects) {
65 for (const workspace of project.workspaces) {
66 if (workspace.id === workspaceId) {
67 return { projectPath, workspace };
68 }
69 }
70 }
71 return null;
72}
73
74/**
75 * Walk the parentWorkspaceId chain to compute task nesting depth.

Callers 15

maybeStartGenerationMethod · 0.90
generateMethod · 0.90
drainBashMonitorWakesMethod · 0.90
removeMethod · 0.90
initializeMethod · 0.90
createManyMethod · 0.90
createMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected