MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / getWorkspacePath

Function getWorkspacePath

src/services/node/index.ts:19–23  ·  view source on GitHub ↗
(...paths: string[])

Source from the content-addressed store, hash-verified

17
18// correct paths to be from workspace root rather than extension folder
19const getWorkspacePath = (...paths: string[]) => {
20 const workspacePath = join(WORKSPACE_ROOT, ...paths)
21 logger(`Workspace path: ${workspacePath}`)
22 return workspacePath
23}
24
25export const exec = (params: ExecParams): Promise<{ stdout: string; stderr: string }> | never => {
26 const cwd = join(WORKSPACE_ROOT, params.dir || '')

Callers 4

existsFunction · 0.85
removeFileFunction · 0.85
readFileFunction · 0.85
writeFileFunction · 0.85

Calls 1

loggerFunction · 0.50

Tested by

no test coverage detected