MCPcopy Index your code
hub / github.com/coder/mux / startWorkspaceInit

Method startWorkspaceInit

src/node/services/taskService.ts:2165–2177  ·  view source on GitHub ↗
(workspaceId: string, projectPath: string)

Source from the content-addressed store, hash-verified

2163 }
2164
2165 private startWorkspaceInit(workspaceId: string, projectPath: string): InitLogger {
2166 assert(workspaceId.length > 0, "startWorkspaceInit: workspaceId must be non-empty");
2167 assert(projectPath.length > 0, "startWorkspaceInit: projectPath must be non-empty");
2168
2169 this.initStateManager.startInit(workspaceId, projectPath);
2170 return {
2171 logStep: (message: string) => this.initStateManager.appendOutput(workspaceId, message, false),
2172 logStdout: (line: string) => this.initStateManager.appendOutput(workspaceId, line, false),
2173 logStderr: (line: string) => this.initStateManager.appendOutput(workspaceId, line, true),
2174 logComplete: (exitCode: number) => void this.initStateManager.endInit(workspaceId, exitCode),
2175 enterHookPhase: () => this.initStateManager.enterHookPhase(workspaceId),
2176 };
2177 }
2178
2179 async createMany(
2180 argsList: TaskCreateArgs[],

Callers 2

createMethod · 0.95

Calls 5

startInitMethod · 0.80
appendOutputMethod · 0.80
endInitMethod · 0.80
enterHookPhaseMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected