You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Undo/Redo adds a stop in between CHN Characters #9675
bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityl10n-platformLocalization platform issues (not wrong translations)verifiedVerification succeeded
I cannot reproduce this issue with Google Pinyin on Windows 7 x64 though I am still using VSCode 1.2.1 on this machine. But what I observed is also interesting,
Type "ceshi" and Google Pinyin turns it to "测试". Then Ctrl + Z rolls it back to ceshi.
This behavior exactly matches how Ctrl + Z works inside Chrome.
I don't think this is a bug. It sounds more like a limitation in Chromium IME integration. Note that VSCode is in fact a browser, not a classic desktop app like Sublime Text.
The issue can exist if you use a specific Chinese input method (you don't even mention which you are using), as I think Control + Z behavior is heavily tied to the input method itself. I just said that VSCode does nothing wrong, and Chromium based applications (such as Google Chrome) like I tested behave the same.
Then, I can try to reproduce and check what happens at the model level that would make undo confused and not stitch together multiple edits in a single undo operation.
Debian packages needed to use smart pinyin: apt-get install scim-pinyin fonts-arphic-ukai fonts-arphic-uming
Restart may be needed to apply the change.
Open vsc1.4, use ctrl+space to toggle input methods.
When Chinese input method is enabled, try inputing "long", pressing space to select a character. Then press crl+z to undo, you need undo 8 times to clear the just input character.
It looks vsc creates two undo points for each letter typing.
bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityl10n-platformLocalization platform issues (not wrong translations)verifiedVerification succeeded
Activity
lextm commentedon Jul 25, 2016
I cannot reproduce this issue with Google Pinyin on Windows 7 x64 though I am still using VSCode 1.2.1 on this machine. But what I observed is also interesting,
Type "ceshi" and Google Pinyin turns it to "测试". Then Ctrl + Z rolls it back to ceshi.
This behavior exactly matches how Ctrl + Z works inside Chrome.
I don't think this is a bug. It sounds more like a limitation in Chromium IME integration. Note that VSCode is in fact a browser, not a classic desktop app like Sublime Text.
yangjianhua commentedon Jul 29, 2016
In fact it really exists.
I don't know what "Chromium IME integration" mean, I'm using Win 8 as the first post grab.
And it really exists.
it's still the biggest problem that I insist to using Sublime Text
lextm commentedon Jul 30, 2016
The issue can exist if you use a specific Chinese input method (you don't even mention which you are using), as I think Control + Z behavior is heavily tied to the input method itself. I just said that VSCode does nothing wrong, and Chromium based applications (such as Google Chrome) like I tested behave the same.
yaxinlx commentedon Aug 7, 2016
still exists in v1.4, Debian amd64, SCIM+Smart Pinyin.
对一个刚输入简单的中文词语,需要ctrl+z七八次才能完全清除此中文词语。
没装过vsc1.1-1.3,但是v1.0中正常的。感觉vsc创建了太多的undo points.
alexdima commentedon Aug 8, 2016
yangjianhua yaxinlx (@yaxinlx) Can you please help me out and provide steps for dummies :) -- similar to those described in https://github.com/Microsoft/vscode/wiki/IME-Test
Then, I can try to reproduce and check what happens at the model level that would make undo confused and not stitch together multiple edits in a single undo operation.
yaxinlx commentedon Aug 9, 2016
alexandrudima
Debian packages needed to use smart pinyin: apt-get install scim-pinyin fonts-arphic-ukai fonts-arphic-uming
Restart may be needed to apply the change.
Open vsc1.4, use ctrl+space to toggle input methods.
When Chinese input method is enabled, try inputing "long", pressing space to select a character. Then press crl+z to undo, you need undo 8 times to clear the just input character.
It looks vsc creates two undo points for each letter typing.
[-]Can not handle CHN Characters[/-][+]Undo/Redo adds a stop in between CHN Characters[/+]Fixes microsoft#9675: Do not push undo stops when compositing