Skip to content

Undo/Redo adds a stop in between CHN Characters #9675

Closed

Description

@yangjianhua
  • VSCode Version: Code 1.3.1 (e6b4afa, 2016-07-12T13:35:06.227Z)
  • OS Version: Windows_NT ia32 6.3.9600

Steps to Reproduce:

1.Put any Chinese characters (more than 1) in any file of vscode;
2.Press CTRL+Z to undo the action above;

Separate a single CHN character into 2, so we need to press double CTRL+Z in coding.

This is the main reason I still use Sublime Text

Activity

  1. lextm commented on Jul 25, 2016

    @lextm

    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.

  2. yangjianhua commented on Jul 29, 2016

    @yangjianhua
    Author

    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

  3. lextm commented on Jul 30, 2016

    @lextm

    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.

  4. yaxinlx commented on Aug 7, 2016

    @yaxinlx

    still exists in v1.4, Debian amd64, SCIM+Smart Pinyin.

    对一个刚输入简单的中文词语,需要ctrl+z七八次才能完全清除此中文词语。
    没装过vsc1.1-1.3,但是v1.0中正常的。感觉vsc创建了太多的undo points.

  5. alexdima commented on Aug 8, 2016

    @alexdima
    Member

    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.

  6. added
    info-needed
    on Aug 8, 2016
  7. yaxinlx commented on Aug 9, 2016

    @yaxinlx

    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.

  8. added
    bug
    on Aug 9, 2016
  9. changed the title [-]Can not handle CHN Characters[/-] [+]Undo/Redo adds a stop in between CHN Characters[/+] on Aug 26, 2016
  10. added
    l10n-platform
    and removed
    info-needed
    on Aug 26, 2016
  11. added
    verified
    on Aug 31, 2016
  12. locked and limited conversation to collaborators on Nov 18, 2017
  13. added a commit that references this issue on Sep 6, 2026
    961cc01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugeditor-corel10n-platformverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions