IDEX-1472: Just removed file is still opened in the editor