MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / sanitizePath

Function sanitizePath

src/utils/vscode.ts:275–275  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

273) => await vscode.window.showQuickPick<T>(options, { ...config, canPickMany: true });
274
275export const sanitizePath = (path: string) => (path.startsWith("/") ? path : `/${path}`);
276
277export const writeToFile = async (path: string | vscode.Uri, content: string) => {
278 const destination = typeof path === "string" ? vscode.Uri.file(path) : path;

Callers 2

generatePathFunction · 0.90
generateShadcnUIFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected