From 9032da8cdf3d15ea13b2b4c32147f2d72187357b Mon Sep 17 00:00:00 2001 From: Rahul Yadav Date: Fri, 12 Apr 2024 20:35:20 +0530 Subject: [PATCH] Allow to import FunC file in Tact --- src/hooks/project.hooks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/project.hooks.ts b/src/hooks/project.hooks.ts index 7c6eca5..e3de701 100644 --- a/src/hooks/project.hooks.ts +++ b/src/hooks/project.hooks.ts @@ -184,7 +184,10 @@ export function useProjectActions() { let filesToProcess = [file?.path]; projectFiles(projectId).forEach((f) => { - if (f.name.includes('.tact') && !filesToProcess.includes(f.path)) { + if ( + /\.(tact|fc|func)$/.test(f.name) && + !filesToProcess.includes(f.path) + ) { filesToProcess.push(f.path); } });