MCPcopy
hub / github.com/microsoft/vscode / fixPath

Function fixPath

test/unit/coverage.js:93–99  ·  view source on GitHub ↗
(brokenPath)

Source from the content-addressed store, hash-verified

91}
92
93function fixPath(brokenPath) {
94 const startIndex = brokenPath.lastIndexOf(REPO_PATH);
95 if (startIndex === -1) {
96 return toLowerDriveLetter(brokenPath);
97 }
98 return toLowerDriveLetter(brokenPath.substr(startIndex));
99}

Callers 4

coverage.jsFile · 0.70
convertToDAPathsFunction · 0.50
convertToVSCPathsFunction · 0.50

Calls 1

toLowerDriveLetterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…