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

Function tryReadFile

src/utils/vscode.ts:291–297  ·  view source on GitHub ↗
(path: string | vscode.Uri)

Source from the content-addressed store, hash-verified

289 }
290};
291export const tryReadFile = async (path: string | vscode.Uri) => {
292 try {
293 return await vscode.workspace.fs.readFile(typeof path === "string" ? vscode.Uri.file(path) : path);
294 } catch (e) {
295 return [];
296 }
297};
298
299export const generateCommand = (command: string) => `remix-forge.${command}`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected