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

Function getParentDirFromFileUri

src/utils/file.ts:59–63  ·  view source on GitHub ↗
(uri: vscode.Uri)

Source from the content-addressed store, hash-verified

57 }
58}
59function getParentDirFromFileUri(uri: vscode.Uri) {
60 const parentPath = path.dirname(uri.fsPath);
61 const parentUri = vscode.Uri.file(parentPath);
62 return parentUri;
63}
64
65export const isRemixDir = async (uri: vscode.Uri) => {
66 const hasRemixConfig = await fileExists(uri, "remix.config.js");

Callers 1

getRemixRootFromFileUriFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected