Fix issue with assistant editors and sequential delete commands.
(codeEditor could change to an assistant that was not in focus, and subsequent deletes would happen there)