Is there anyway to lock a function or file from being edited?

Custom instructions can be really helpful when you want to limit changes to multiple files/functions/components.

You can also lock specific files from the code panel