in karavan-vscode/src/utils.ts [55:65]
export async function readKamelets(context: ExtensionContext) {
const yamls: string[] = await readBuildInKamelets(context);
const kameletsPath: string | undefined = workspace.getConfiguration().get("Karavan.kameletsPath");
if (kameletsPath && kameletsPath.trim().length > 0) {
const kameletsDir = path.isAbsolute(kameletsPath) ? kameletsPath : path.resolve(kameletsPath);
const files = await readFilesInDirByExtension(kameletsDir, "yaml");
const customKamelets: string[] = Array.from(files.values());
if (customKamelets && customKamelets.length > 0) yamls.push(...customKamelets);
}
return yamls;
}