add spy object to test focus event

fixes remaining issue for #9972 
The idea was that if user is currently editing file then:
* file may be in an intermediate state which confuses term
* they may be actively trying to fix it
* edits will cause file to be processed again, anyway

Not sure if there's a better way to determine if file is being "edited". Maybe any file open in any working set qualifies?