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

Method initWorkspace

src/node/runtime/LocalRuntime.ts:88–97  ·  view source on GitHub ↗
(params: WorkspaceInitParams)

Source from the content-addressed store, hash-verified

86 }
87
88 async initWorkspace(params: WorkspaceInitParams): Promise<WorkspaceInitResult> {
89 return runWorkspaceInitHook({
90 params,
91 runtimeType: "local",
92 hookCheckPath: params.projectPath,
93 runHook: async ({ muxEnv, initLogger, abortSignal }) => {
94 await this.runInitHook(params.workspacePath, muxEnv, initLogger, abortSignal);
95 },
96 });
97 }
98
99 /**
100 * Renaming is a no-op for LocalRuntime - the workspace path is always the project directory.

Callers

nothing calls this directly

Calls 1

runWorkspaceInitHookFunction · 0.90

Tested by

no test coverage detected