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

Failed to handle key ,: argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true #7296

Open
wunoman opened this issue Dec 3, 2021 · 2 comments

Comments

@wunoman
Copy link

wunoman commented Dec 3, 2021

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

VSCodeVim version: 1.21.10

Stack trace
Error: argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true
    at r (vscode-file://vscode-app/d:/devtool/vscode/resources/app/out/vs/workbench/workbench.desktop.main.js:76:5236)
    at o (vscode-file://vscode-app/d:/devtool/vscode/resources/app/out/vs/workbench/workbench.desktop.main.js:76:4963)
    at y.handler (vscode-file://vscode-app/d:/devtool/vscode/resources/app/out/vs/workbench/workbench.desktop.main.js:597:18838)
    at h.invokeFunction (vscode-file://vscode-app/d:/devtool/vscode/resources/app/out/vs/workbench/workbench.desktop.main.js:599:319)
    at h._tryExecuteCommand (vscode-file://vscode-app/d:/devtool/vscode/resources/app/out/vs/workbench/workbench.desktop.main.js:1501:3496)
    at vscode-file://vscode-app/d:/devtool/vscode/resources/app/out/vs/workbench/workbench.desktop.main.js:1501:3245
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
@wunoman
Copy link
Author

wunoman commented Dec 3, 2021

"vim.normalModeKeyBindings": [
    {
        "before":[",",","], "commands":["editor.fold"],
    },

]
when I map key try to fold code, raise error, but another map ok.
"vim.normalModeKeyBindings": [
{
"before":[",", "s"], "after":[ ":", "w", ""],
},
]

@wunoman
Copy link
Author

wunoman commented Dec 3, 2021

use these all fine.
{
"before":["g","["], "commands":["editor.toggleFold"],
},
{
"before":["g","]"], "commands":["editor.unfoldAll"],
},

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

1 participant