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

Function getWorkspaceUri

src/utils/vscode.ts:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41};
42
43export const getWorkspaceUri = () => {
44 const workspaceFolders = vscode.workspace.workspaceFolders;
45 if (!workspaceFolders || workspaceFolders.length === 0) {
46 return undefined; // No workspace folders found
47 }
48
49 const workspaceFolderPath = workspaceFolders[0].uri;
50 return workspaceFolderPath;
51};
52
53export async function getPackageJson(rootDir: vscode.Uri) {
54 const packageJsonPath = vscode.Uri.joinPath(vscode.Uri.file(rootDir.fsPath), "package.json").fsPath;

Callers 3

activateFunction · 0.90
getRemixRootFromFileUriFunction · 0.90
startDevToolsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected