Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Hotkeys and Vim Motions Not Working in Debug Mode #9379

Open
niklod opened this issue Nov 27, 2024 · 2 comments
Open

Custom Hotkeys and Vim Motions Not Working in Debug Mode #9379

niklod opened this issue Nov 27, 2024 · 2 comments

Comments

@niklod
Copy link

niklod commented Nov 27, 2024

Describe the bug
Custom hotkeys defined in the VSCodeVim extension do not work in debug mode. Even basic Vim motions are unresponsive when debugging.

To Reproduce
Steps to reproduce the behavior:

  1. Configure custom hotkeys in settings.json for VSCodeVim, e.g.:
    {
        "before": ["<leader>", "d", "c"],
        "commands": ["editor.debug.action.continue"]
    },
    {
        "before": ["<leader>", "d", "o"],
        "commands": ["workbench.action.debug.stepOver"]
    }
  2. Start debugging in VSCode.
  3. Attempt to use the custom hotkeys or basic Vim motions during the debug session.
  4. Observe that neither the hotkeys nor the Vim motions function.

Expected behavior
Custom hotkeys and basic Vim motions should work seamlessly in debug mode, as they do outside of it.

Screenshots

vim_debug.mp4

Environment (please complete the following information):
• Extension (VsCodeVim) version: v1.28.1
• VSCode version: 1.95.3
• OS: Darwin arm64 24.1.0 (MacOS 15.1.1)

Additional context
The issue makes it difficult to debug efficiently while relying on Vim keybindings. If remapping-related logs are required, please specify, and I can attach them.

@awaken233
Copy link

The situation I encountered is that once I enter debugging mode and cannot use user custom vim key mappings, the default Vim mapping can still be used.

@bstadlbauer
Copy link

I'm seeing the same issue - from what I can tell, this only happens when the debug mode is entered through a custom <leader>... mapping, but not when starting the test debug by clicking in the UI.

E.g. the following keybinding will produce the error:

{
    "before": [
        "<leader>",
        "d",
        "c"
    ],
    "commands": [
        "testing.debugAtCursor"
    ]
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants