MCPcopy Create free account
hub / github.com/continuedev/continue / formatPath

Function formatPath

extensions/cli/src/ui/ToolResultSummary.tsx:183–190  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

181
182 // Convert absolute paths to relative paths from workspace root
183 const formatPath = (filePath: string) => {
184 if (path.isAbsolute(filePath)) {
185 const workspaceRoot = process.cwd();
186 const relativePath = path.relative(workspaceRoot, filePath);
187 return relativePath || filePath;
188 }
189 return filePath;
190 };
191
192 // Handle specific tool output formatting
193 switch (toolName) {

Callers 1

getSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected