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

Function openFileInEditor

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

Source from the content-addressed store, hash-verified

27 return { fileName, fileNameExtension, fileNameWithoutExtension };
28};
29export async function openFileInEditor(filePath: string) {
30 const uri = vscode.Uri.file(filePath);
31 const document = await vscode.workspace.openTextDocument(uri);
32 return vscode.window.showTextDocument(document);
33}
34
35export const formatFile = async (filePath: string) => {
36 const editor = await openFileInEditor(filePath);

Callers 2

startDevToolsFunction · 0.90
formatFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected