Release all subscriptions to prevent memory leaks
Introduce strongly typed FileSettings
Honor insert_final_newline setting
Honor trim_trailing_whitespace setting