cleanup editor state after inplace refactoring
moreSpecific cleanup