VSCodeVim / VSCodeVim/Vim

Auto Switch Input Method doesn't work very well

Open
#4,982 0 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
I got some issues while using auto switch input method extension.
I use Chinese input method(Sogou pinyin) in insert mode to type Chinese. Then press ESC, autoSwitch to US to navigate with hjkl. It works very well most of time, but sometimes, when I enter the insert mode, even though I am using the Chinese input method(im-select returns com.sogou.inputmethod.sogou.pinyin), it still types abc, not Chinese expected.

Also, I tried to replace the Sogou input method to Apple Pinyin input method(com.apple.inputmethod.SCIM.Shuangpin), the bug still happened.

Expected behavior
Auto switch to Chinese input method and type Chinese always.

Screenshots
image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.14.5
  • VSCode version:1.46.1
    Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
    Datetime: 2020-06-17T21:17:14.222Z (a week ago)
    Electron: 7.3.1
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Darwin x64 19.5.0
  • OS: macOS Catalina 10.15.5

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

Start by reproducing the intermittent behavior in the auto switch input method extension on macOS, using im-select's reported Chinese input method as the observable state. Trace the switching behavior when leaving and re-entering insert mode; done means Chinese input is restored reliably rather than producing ABC text.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, typescript, vscode
Domain
desktop, devtools
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.