Describe the bug
When executing the "Close all editors" command when in insert mode and with a split pane, the following error message is displayed:
TaskQueue: Error running task. Cannot read property 'options' of undefined.

To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error message.
Screenshots
Here's a video showing the bug in action. First I show how no error message is displayed if in visual mode, then I show how an error message is displayed when in insert mode.
https://monosnap.com/file/nIvJhCv7JTDTaVMbXGUr8YgQ9qHHzH
Environment (please complete the following information):
1.0.81.31.1macOS 10.14.3 - Darwin x64 18.2.0Thanks for reporting this errors.
In the early days, we made an assumption that there would only be one open window which turned out to be a bad one when vscode supported split panes. This error indicates that we are trying to operate on the editor that you closed; the error itself is benign and it's safe to ignore it but it'd be good to actually add checks in our codebase to see if the editor is still open.
@jpoon : It appears to no longer be benign. When I try to switch panes and I'm using Python Interactive (vscode data science tools: https://code.visualstudio.com/docs/python/jupyter-support), I get
TaskQueue: Error running task. Cannot read property 'options' of undefined., and the pane won't switch.
This is when using a hotkey for workbench.action.focusLeftGroup.
Potentially related: #3596
I can't seem to replicate it using your instructions @jbrowning. Are you still experiencing this?
Most helpful comment
Thanks for reporting this errors.
In the early days, we made an assumption that there would only be one open window which turned out to be a bad one when vscode supported split panes. This error indicates that we are trying to operate on the editor that you closed; the error itself is benign and it's safe to ignore it but it'd be good to actually add checks in our codebase to see if the editor is still open.