Building an efficient text change handler for both auto-save and syntactic parsing in TS.