question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chinese IME does not work correctly with CompletionItemProvider

See original GitHub issue

If set suggestion label as a chinese text, the auto complete item will never show when input with chinese IME like sougou.

And I found that the suggestion check is triggered in ‘compositionupdate’ event instead of ‘compositionend,’ then the selection check is failed, the preSelection(typed alpha text) is after currentSelection(chinese text):

//  in suggestModel.js : _onCursorChange

(!prevSelection.containsRange(this._currentSelection) && !prevSelection.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))

In vscode there is same problem. the snippets with chinese label doesn’t not work.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hedietcommented, Jul 4, 2021

I’m not very familiar with IME (yet). Can you share a video and give explicit instructions of how to reproduce this issue?

0reactions
a407121393commented, Jul 21, 2021

Is there any solution now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

“Traditional Chinese IME is not ready yet” on Windows 10
The problem is when I try to install the Microsoft Bopomofo pinyin input method under the Chinese (Taiwan) category. It will be installed....
Read more >
intellisense - add completionitemprovider and keep suggestions
If this is not possible I think there is no other option than to providing all completion items yourself (including word-based suggestions).
Read more >
Fixing Japanese and Chinese IME problem [EN] - /w/root
When we install Japanese or Chinese language regularly, it only has 2 icons and then IME doesn't work correctly.
Read more >
Windows 10 With Chinese IME Installed Causing High CPU ...
EXE) and Chinese Traditional (ChtIME.EXE) IMEs can experience high CPU usage problems. "Some Input Method Editor (IME) may become unresponsive ...
Read more >
Set up a Chinese or Cantonese input source on Mac
(You may need to scroll down.) Open Keyboard settings for me. Go to Text Input on the right, click Edit, then in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found