Too many backticks are inserted when using languages with auto-closing backticks
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
In languages like JavaScript where VSCode auto-closes backticks, this extension causes the editor to insert too many backticks.
To Reproduce
Steps to reproduce the behavior:
- Open a JS file
- Type 'console.log(`'
- Press tab or a character, either way an extra backtick is inserted
Expected behavior
Only one closing backtick should be added, like in 'vanilla' VSCode.
Screenshots
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.22.2
- VSCode version: 1.65.2
- OS: macOS 12.3 (arm64)
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
Start by reproducing the issue in a JavaScript file with VSCode's auto-closing backticks enabled, following the reported console.log(` steps and testing Tab and character input. Trace the extension's backtick handling from the reproduction path; done means only one closing backtick is inserted, matching vanilla VSCode behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100