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

Function formatFile

src/utils/file.ts:35–39  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

33}
34
35export const formatFile = async (filePath: string) => {
36 const editor = await openFileInEditor(filePath);
37 await vscode.commands.executeCommand("editor.action.formatDocument");
38 await editor.document.save();
39};
40
41export type FileSearchStrategy = "all" | "one-up" | "sub";
42

Callers 1

generateTestFileFunction · 0.90

Calls 1

openFileInEditorFunction · 0.85

Tested by

no test coverage detected