MCPcopy Index your code
hub / github.com/Waishnav/devspace / resolveWorkingDirectory

Method resolveWorkingDirectory

src/workspaces.ts:158–161  ·  view source on GitHub ↗
(workspace: Workspace, workingDirectory: string | undefined)

Source from the content-addressed store, hash-verified

156 }
157
158 resolveWorkingDirectory(workspace: Workspace, workingDirectory: string | undefined): string {
159 const directory = workingDirectory ? this.resolvePath(workspace, workingDirectory) : workspace.root;
160 return assertAllowedPath(directory, [workspace.root]);
161 }
162
163 private async openCheckoutWorkspace(path: string): Promise<WorkspaceContext> {
164 const root = assertAllowedPath(path, this.config.allowedRoots);

Callers 2

createMcpServerFunction · 0.80

Calls 2

resolvePathMethod · 0.95
assertAllowedPathFunction · 0.85

Tested by

no test coverage detected