VSCodeVim / VSCodeVim/Vim

Error when closing a split pane in insert mode

Open
#3,490 4 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

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.

rickshaw 2019-02-14 09-27-10

To Reproduce
Steps to reproduce the behavior:

  1. Open multiple files with a split pane
  2. Enter insert mode
  3. Execute the "Close all editors", command either via keyboard shortcut or the command pane

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):

  • Extension (VsCodeVim) version: 1.0.8
  • VSCode version: 1.31.1
  • OS: macOS 10.14.3 - Darwin x64 18.2.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sequence in VSCode: open multiple files in a split pane, enter insert mode, and run “Close all editors” via a shortcut or the command pane. Trace the command until the TaskQueue error occurs; done means the command closes the editors without displaying an error in insert mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.