Skip to content

Commit 939eb31

Browse files
committed
Fix disable_file_parse for create_file
1 parent 8fad819 commit 939eb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/sdk/core/codebase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def create_file(self, filepath: str, content: str = "", sync: bool = True) -> TS
498498

499499
file_exts = self.ctx.extensions
500500
# Create file as source file if it has a registered extension
501-
if any(filepath.endswith(ext) for ext in file_exts):
501+
if any(filepath.endswith(ext) for ext in file_exts) and not self.ctx.config.disable_file_parse:
502502
file_cls = self.ctx.node_classes.file_cls
503503
file = file_cls.from_content(filepath, content, self.ctx, sync=sync)
504504
if file is None:

0 commit comments

Comments
 (0)