Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Decorations Not Updating when using an IME to input on windows. #4805

Open
1 of 2 tasks
iy1z opened this issue Jan 17, 2025 · 0 comments
Open
1 of 2 tasks

[Bug] Decorations Not Updating when using an IME to input on windows. #4805

iy1z opened this issue Jan 17, 2025 · 0 comments

Comments

@iy1z
Copy link

iy1z commented Jan 17, 2025

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

When using an Input Method Editor (IME) on Windows, decorations in the Monaco editor do not update correctly after the compositionStart event is fired. This issue occurs when a user starts typing using an IME, and the editor fails to refresh or re-render the decorations, leading to incorrect or missing visual cues.

To Reproduce

  1. Environment: Monaco Playground (line and inline decoration example)
  2. Input Method: Any IME (e.g., Japanese, Chinese, Korean)
  3. Monaco Editor Version: [0.52.2]

Reproduction Steps

  1. Open the line and inline decoration example in playground:.
  2. Enable an IME.
  3. Start typing using the IME to input characters on a inline block with decorations.
  4. Observe that the decorations in the line of typing are not updated or re-rendered to reflect the changes in the text.

Expected Behavior

Decorations should update dynamically as the user types using the IME, even during the composition phase (between compositionStart and compositionEnd events).

Actual (Problematic) Behavior

Decorations do not update after the compositionStart event, leading to inconsistencies between the displayed text and the visual decorations.

Screenshots

Image

Additional context

This issue specifically occurs on Windows when using an IME.
It may be related to the way the Monaco editor handles input events and updates decorations during IME composition.
This bug can impact various features that rely on decorations, such as syntax highlighting, error markers, and custom annotations.
Possible solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant