Microsoft/vscode

Substitution performed when accepting a Kanji conversion of Japanese input method

已關閉

#194,902 建立於 2023年10月5日

 (1 則留言) (0 個反應) (2 位負責人)TypeScript (39,847 個分叉)batch import
bugconfirmededitor-input-IMEhelp wanted

倉庫指標

星標
 (184,936 顆星)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Version: 1.83.0 (Universal) Commit: e7e037083ff4455cf320e344325dacb480062c3c
  • OS Version: macOS 13.5.2(22G91)

Steps to Reproduce:

  1. Setup Japanese keyboard. Add 日本語 - ローマ字 (Japanese - Romaji) keyboard to your environment. For details, see Set up a Japanese input source on Mac.
  2. Disable live conversion. For details, see the section Use traditional conversion in Enter Japanese text using a Japanese input source on Mac.
  3. Create new text file and paste the following text to multiple lines:
    これを置換したい。
    
  4. Open the Find & Replace box. (Select "Edit > Replace" in menu.)
  5. Click the Find field.
  6. Switch to Japanese keyboard. (⌃⇧J)
  7. Type korewo. The input text would be これを with underline, which shows the text has not been accepted yet.
  8. Type (return key). The input text is accepted without conversion.
  9. Type chikanshi. The input text would be ちかんし with underline.
  10. Type (space bar). The input text would be converted to 置換し.
  11. Type . The input text is now accepted.
  12. Type (tab key). The focus is now on the Replace field.
  13. Type korewo. The input text would be これを with underline.
  14. Type to accept.
  15. Type okikae. The input text would be おきかえ with underline.
  16. Type to convert. The input text would be converted to 置き換え.
  17. Type to accept.
  18. Type to execute the replacement.

The above steps show a typical example of Japanese input; note that the return key is used both to accept the conversion and to execute the process (in this case, replacement).

Expected result:

Replacements are performed only if there is no unaccepted text.

Actual result:

When a conversion is accepted, replacement is performed at the same time.

https://github.com/microsoft/vscode/assets/1079715/729b6538-5cf1-4946-9a77-89072d31e5a9

貢獻者指南