Microsoft/monaco-editor
Voir sur GitHubChinese IME does not work correctly with CompletionItemProvider
Open
#2 199 ouverte le 20 oct. 2020
bugeditor-input-IMEhelp wantedsuggest
Métriques du dépôt
- Stars
- (14 836 stars)
- Métriques de merge PR
- (Merge moyen 6h 26m) (15 PRs mergées en 30 j)
Description
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.