Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getTemplatesFromCurrentLGFile(lgFileUri: vscode.Uri) : Templates {
let result = new Templates();
let engineEntity: TemplatesEntity = TemplatesStatus.templatesMap.get(lgFileUri.fsPath);
if (engineEntity !== undefined && engineEntity.templates.allTemplates.length > 0) {
result = engineEntity.templates;
}
return result;
}