VSCodeVim / VSCodeVim/Vim

Autocomplete two closing brackets

Open
#8,748 4 comments 0 reactions 0 assignees View on GitHub

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
With Microsoft Pinyin input method on Window 10 (or use Old version on Windows 11), when typing an opening bracket (, two closing brackets )) are automatically completed. Square brackets, curly brackets, and sometimes quotation marks also have the same bug.

To Reproduce
Steps to reproduce the behavior:

  1. With Microsoft Pinyin input method on Window 10 (or use Old version on Windows 11)
  2. Use English punctuation when inputting Chinese
  3. Switch to Chinese mode
  4. Type an opening bracket at INSERT mode of vim
  5. See error

Expected behavior
Automatically completed only one closing brackets

Screenshots
bug

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.6.2 to v1.27.1, at least
  • VSCode version: 1.84.2 (user setup)
  • OS: Windows 11 23H2, Windows 10 21H2

Additional context
I tested and reproduced it with only the vim plugin enabled.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in VSCodeVim INSERT mode with Microsoft Pinyin on the listed Windows versions, using English punctuation while in Chinese mode. Trace the extension's bracket and quotation completion behavior and compare it with ordinary input. Done means an opening bracket produces exactly one closing bracket, including square and curly brackets where affected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.