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

Method getWorkspacePath

src/node/runtime/SSHRuntime.ts:1190–1200  ·  view source on GitHub ↗
(projectPath: string, workspaceName: string)

Source from the content-addressed store, hash-verified

1188 }
1189
1190 getWorkspacePath(projectPath: string, workspaceName: string): string {
1191 if (
1192 this.currentWorkspacePath &&
1193 this.ensureReadyProjectPath === projectPath &&
1194 this.ensureReadyWorkspaceName === workspaceName
1195 ) {
1196 return this.currentWorkspacePath;
1197 }
1198
1199 return getRemoteWorkspacePath(this.getProjectLayout(projectPath), workspaceName);
1200 }
1201
1202 /**
1203 * Path to the shared bare repo for a project on the remote.

Callers 4

checkWorkspaceRepoMethod · 0.95
renameWorkspaceMethod · 0.95
deleteWorkspaceMethod · 0.95
forkWorkspaceMethod · 0.95

Calls 2

getProjectLayoutMethod · 0.95
getRemoteWorkspacePathFunction · 0.90

Tested by

no test coverage detected