MCPcopy Index your code
hub / github.com/continuedev/continue / resolveLsToolDirPath

Function resolveLsToolDirPath

core/tools/implementations/lsTool.ts:8–13  ·  view source on GitHub ↗
(dirPath: string | undefined)

Source from the content-addressed store, hash-verified

6import { resolveInputPath } from "../../util/pathResolver";
7
8export function resolveLsToolDirPath(dirPath: string | undefined) {
9 if (!dirPath || dirPath === ".") {
10 return ".";
11 }
12 return dirPath.replace(/\\/g, "/");
13}
14
15const MAX_LS_TOOL_LINES = 200;
16

Callers 2

lsTool.vitest.tsFile · 0.90
lsToolImplFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected