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.
This change refactors the
virtual_repository
andrepository
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.