Skip to content

fix: read composed text from document on compositionEnd (#9672)#10063

Open
karin0 wants to merge 1 commit into
VSCodeVim:masterfrom
karin0:ime-fix
Open

fix: read composed text from document on compositionEnd (#9672)#10063
karin0 wants to merge 1 commit into
VSCodeVim:masterfrom
karin0:ime-fix

Conversation

@karin0

@karin0 karin0 commented Jul 15, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

Since editor.editContext is enabled by default, IME candidate selection is handled natively and doesn't fire replacePreviousChar, so the raw input would always be replayed at compositionEnd, reverting the IME conversion (#9672).

This PR records the cursor position at compositionStart and reads the composed text from the document at compositionEnd without using the stale composingText.

Which issue(s) this PR fixes

Fixes #9672.

Special notes for your reviewer:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Japanese IME conversion not committed when pressing Enter with VSCodeVim enabled on VS Code 1.101.0

1 participant