refresh tree after extensions change, support file without extensions