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:
- Use VS Code version 1.101.0.
- Ensure the VSCodeVim extension is enabled.
- Open any file in the editor.
- Press
ito enter Vim’s Insert Mode. - Switch the system’s input method to any Chinese IME.
- 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)
experimentalEditContextEnabled 在设置中把这个关了,可以解决 https://code.visualstudio.com/updates/v1_101#_edit-context https://github.com/microsoft/vscode/issues/251518
thanks, 解决了。希望微软少一些阿三程序员
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 likej'j'in the editor, which didn’t happen before.Disabling
experimentalEditContextEnabledfixes my problem.BTW, macOS 15.3.1, VSCode 1.101.0.