editor and tree are synced using watch