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

Function writeToFile

src/utils/vscode.ts:277–280  ·  view source on GitHub ↗
(path: string | vscode.Uri, content: string)

Source from the content-addressed store, hash-verified

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;
279 await vscode.workspace.fs.writeFile(destination, Buffer.from(content));
280};
281
282export const joinPath = (base: vscode.Uri, ...args: string[]) => vscode.Uri.joinPath(base, ...args);
283

Callers 2

generateShadcnUIFunction · 0.90
generateAuthFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected