Skip to content

Using IME with markdown preview enabled, press ESC/BACKSPACE leads in control characters #37114

Closed

Description

@timonwong
  • VSCode Version: 1.17.2
  • OS Version: macOS 10.11.6

Steps to Reproduce:

HINT: You may need to enable editor.renderControlCharacters in order to see what happens, or the control characters is invisible.

  1. Open a "markdown preview" in a split (just ensure the markdown preview is visible).
  2. In another split, edit arbitrary file with IME (mine with Chinese Pinyin).
  3. Type some characters using IME, before put them on screen, type backspace/esc to see what happens.

Just see the screenshot for example:

hmmm

Reproduces without extensions: Yes

Activity

  1. added
    markdown-ext
    on Oct 30, 2017
  2. removed
    markdown-ext
    on Oct 30, 2017
  3. added
    editor-input-IME
    macos
    on Nov 1, 2017
  4. rebornix commented on Nov 15, 2017

    @rebornix
    Contributor

    It only happens when you are previewing the markdown content, which means it's caused by the webview.

  5. added
    bug
    upstream
    on Nov 15, 2017
  6. rebornix commented on Nov 16, 2017

    @rebornix
    Contributor

    It turns out that when we preview the md content, the webview will lead to the problem as described in #24981 (you need to double backspace to delete characters). This problem was introduced in Electron 1.5.x, fixed by backporting in 1.6.x, apparently they forgot to backport the fix in 1.7.x. Ideally this can be fixed once we adopt 1.8.x.

    More info electron/electron#9173 (comment) , cc Benjamin Pasero (@bpasero) Daniel Imms (@Tyriar)

  7. added
    electron
    on Nov 16, 2017
  8. 36 remaining items

  9. He2hiwei commented on Jan 20, 2019

    @He2hiwei

    The same issue can be reproduced on macOS 10.14.2 too. It is is so disturbing. When will it be fixed?

  10. rebornix commented on Jan 25, 2019

    @rebornix
    Contributor

    Kohei Yamada (@kouhei) Zhicheng Chen (@0x4f5da2) He2hiwei do you mind sharing more details about the version of VSCode you are using and steps to reproduce?

    Example:

    • Version 1.31.0-insider (1.31.0-insider)
    • Commit: 50854c0
    • macOS 10.14.2
    • whether you have markdown preview open

    image

    The reason I asked for you help on this as I can't reproduce this bug anymore. If the issue is still there someway, I'll look into it and get it fixed. The bug existed for too long and we need to give it an end but I need more info ;)

  11. added
    info-needed
    on Jan 28, 2019
  12. sanxing-chen commented on Feb 1, 2019

    @sanxing-chen

    Hi Peng Lyu (@rebornix)
    I'm using 1.31.0-insider with latex-workshop plugin which has a pdf preview webview. And I'm using macOS(10.14.1) default Chinese IME.
    The bug cannot be consistently reproduced in 1.31.0-insider, but it still happened from time to time if you input and delete character very quickly.
    For LaTeX editing, this bug is pretty annoying, because the ^H in TeX will trigger a compilation termination with errors.

  13. robertying commented on Feb 3, 2019

    @robertying

    It's happening not only in editor but also in VSCode's every input field (I believe).

    I used VSCode's built-in Git extension and submitted a commit message in it, and somewhere in my final commit message appears a � on GitHub.

  14. zruijie commented on Feb 28, 2019

    @zruijie
    • macOS Mojava 10.14.3
    • vscode 1.31.1 (1.31.1) 1b8e830

    Maybe this bug has been fixed. Now I donot meet this bug any more.

  15. MyroshnykRoman commented on Sep 12, 2019

    @MyroshnykRoman

    Issue is still reproduced with Version: 1.38.1
    and Japanese IME

  16. bpasero commented on Oct 18, 2019

    @bpasero
    Contributor

    Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

  17. acbetter commented on Oct 20, 2019

    @acbetter

    Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

    The bug seems to be fixed in recent nightly insider builds.
    Tested Code Version: 1.40.0-insider and no other extensions installed.

    Version: 1.40.0-insider
    Commit: 5aec74a
    Date: 2019-10-18T05:32:01.162Z
    Electron: 6.0.12
    Chrome: 76.0.3809.146
    Node.js: 12.4.0
    V8: 7.6.303.31-electron.0
    OS: Darwin x64 18.6.0

  18. bpasero commented on Oct 20, 2019

    @bpasero
    Contributor

    Awesome, thanks for trying. Can others confirm too?

  19. vscodebot commented on Oct 27, 2019

    @vscodebot

    This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

    Happy Coding!

  20. locked and limited conversation to collaborators on Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-input-IMEelectroninfo-neededmacosupstream

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions