vscode: Bug: Chinese IME punctuation duplicates in v1.101 when Vim extension is active

Does this issue occur when all extensions are disabled?: No

This issue appears to be a regression in VS Code itself, not an issue with the Vim extension alone.

Troubleshooting summary: I have performed extensive testing. I’ve reinstalled VS Code completely multiple times and tested the Vim extension in isolation.

The key finding is: The bug only appears in recent VS Code builds (e.g., May 2025, v1.101). When I downgrade VS Code to the March 2025 version, the problem completely disappears, even while using the same latest version of the Vim extension.

This strongly suggests a breaking change was introduced within VS Code’s core between the March and May versions that affects how it handles IME events when the Vim extension is active.

  • VS Code Version: 1.101.0 (May 2025)
  • OS Version: Windows 11 (on AMD R9 CPU)

Steps to Reproduce:

  1. Use VS Code version 1.101.0.
  2. Ensure the VSCodeVim extension is enabled.
  3. Open any file in the editor.
  4. Press i to enter Vim’s Insert Mode.
  5. Switch the system’s input method to any Chinese IME.
  6. Type a full-width punctuation mark, such as a comma , or a period 。.

Actual Behavior: The punctuation mark is immediately duplicated (e.g., , becomes ,,).

Expected Behavior: Only a single punctuation mark should be inserted (e.g., , should remain ,).

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 7
  • Comments: 16 (9 by maintainers)

Most upvoted comments

experimentalEditContextEnabled 在设置中把这个关了,可以解决 https://code.visualstudio.com/updates/v1_101#_edit-context https://github.com/microsoft/vscode/issues/251518

experimentalEditContextEnabled 在设置中把这个关了,可以解决 https://code.visualstudio.com/updates/v1_101#_edit-context #251518

thanks, 解决了。希望微软少一些阿三程序员

Hi everyone, I have looked again at the issue and I noticed the following. When the EditContext is enabled and the Chinese Microsoft Pinyin IME is used, after typing a dot, we receive a textupdate event. We reset the EditContext state and this makes the Microsoft Pinyin IME send a second textupdate event, which is the reason a second dot is added.

If you type . while using the IME, it fires two text-update events. This looks like it could be a bug with the IME. I will discuss this with the IME team.

Hi @aiday-mar. I also have this problem using the Rime IME.

I’m using extension VSCodeVim. Sometimes, I forget to disable the Chinese IME when i’m doing navigation in NORMAL mode, like typing jjj. So just switch back to US keyboard without clearing the typing first. With experimentalEditContextEnabled, the jjj is not passed as actions in NORMAL mode, but inserted as sth like j'j' in the editor, which didn’t happen before.

Disabling experimentalEditContextEnabled fixes my problem.

BTW, macOS 15.3.1, VSCode 1.101.0.