codefuse-ai / RepoFuse

Other
45 stars 2 forks source link

refactor(repository): Simplify file handling logic and improve flexibility #29

Closed FunJim closed 2 weeks ago

FunJim commented 2 weeks ago

This change refactors the virtual_repository and repository models to simplify file handling logic by removing unnecessary checks and improving flexibility when setting the programming language. It ensures consistent file creation and updates the way files are computed based on the selected language.

Additionally, it introduces a method _compute_files to compute files dynamically based on the current language and ensures files are recomputed whenever the language property is updated.