reuse settings from filetype when possible
#WEB-14236 fixed
(cherry picked from commit 3b4071b, r=Rustam Vishnyakov)
support scratch files in EC
#WEB-13658 fixed
(cherry picked from commit b302b6e, r=Rustam Vishnyakov)