import * as path from 'path';
import { Uri, workspace } from 'vscode';
/**
* Convert a relative path string into an absolute URI for a resource
* @param relativePath The relative path to the resource
*/
export function createResourceUri (relativePath: string): Uri {
const absolutePath = path.join(workspace.workspaceFolders?.[0]?.uri.path ?? '', relativePath);
return Uri.file(absolutePath);
}