microsoft / microsoft/monaco-editor

[Bug] Japanese IME issue when using wordWrap

Open
#3,549 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug editor-input-IME
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

Reproducible in vscode.dev or in VS Code Desktop?
  • Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.35.0#XQAAAAK3AQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscwz3wO7jQNeA7FQlbpOv2DA3EMY8CYQ3CFqhMFQnNbwxh6oNnQu4zdOiVyZGIB-vxwfpQbbeL25j50ItdHT-fQwzmNrusFBv0v9iXe5FWKDdzF8qMWVilBieAxIj4YzEs2HvBWFa6oHrPfbFjcfukVP7Y67jQn7LR_78a0e5lCiJ4f0jt-ZfrCbQVBQx7p-rHH9zfv6GR4DzL5azQAYqkatGHmixb0U5TVk8-zOJlBOV10xVDCakulk0Xw6mOIeG1EL7R_FAR8ZerqxJ3Iz1HxkVAfH7IsifjixA_cMbfCYDwwaZS6Gzar3rxPkF2z5w82kz4KXxIEC7V1tVQpgyH0CtzWImWMWa74P_55ZVU

Monaco Editor Playground Code
monaco.editor.create(document.getElementById("container"), {
	value: "function hello() {\n\talert('Hello world!');\n}",
	language: "javascript",
	wordWrap: "on"
});
Reproduction Steps

Input characters that overflow the line
like this

あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。

and type text with IME.

Actual (Problematic) Behavior

On Monaco Editor Playground

スクリーンショット 2023-02-11 15 28 02
Expected Behavior

It works right on Visual Studio Code.

スクリーンショット 2023-02-11 15 29 50
Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Monaco Editor Playground and the provided wordWrap: "on" reproduction, then verify the Japanese IME behavior against the expected VS Code result. The work is done when typing overflowing Japanese text with IME behaves correctly while word wrapping is enabled, with the reproduction still covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.