Pass editor reference
refactorCommand -> doneCommand