Skip to content

[Bug] Pressing . twice after an Ex command with no prior edit state freezes extention #9808

@coxxny

Description

@coxxny

Describe the bug
Right after VS Code startup, executing a command that is not repeatable by . (e.g., :w, :q) and then pressing . twice causes the extension to stop responding until the window is reloaded or restarted. This was found while working on #9807.

To Reproduce
Steps to reproduce the behavior:

  1. Launch VS Code with VSCodeVim enabled.
  2. Execute :w (or :q — any command not repeatable by .).
  3. Press . twice.
  4. Observe that the extension becomes unresponsive (no key inputs recognized, etc.) until reload/restart.

Expected behavior

  • Pressing . after a non-repeatable command should be a no-op (or repeat the last edit if any).
  • The extension must not freeze or enter an invalid state.

Screenshots

example1.txt.-.test.-.Visual.Studio.Code.2025-11-01.08-50-51.mp4

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.31.0
  • VSCode version: 1.105.1
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions