Failed to handle key=<C-h>. Cannot read property 'match' of undefined
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
To Reproduce
Steps to reproduce the behavior:
- Go to 'linux cpp file'
- Click on 'crlt+y''
- It will do nothing
- See error
VSCodeVim version: 1.18.5
TypeError: Failed to handle key=<C-h>. Cannot read property 'match' of undefined
at Function.immediateMatchingBracket (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:1:180639)
at S (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:65270)
at /home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:66134
at t.ExtHostTextEditor.edit (/snap/code/52/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:652:191)
at v.execute (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:66108)
at F.runAction (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:171693)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at F.handleKeyAsAnAction (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:170974)
at F.handleKeyEvent (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:167812)
at Object.promise (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:9:211972)
at Object.runTasks (/home/a/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:327644)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in VS Code 1.18.5 with a Linux C++ file and the reported key sequence, then inspect the immediateMatchingBracket entry point shown in out/extension.js. Done means the key no longer raises the reported TypeError and performs its expected action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100