Fix #169 Pass the correct context when removing currentEditor