Microsoft/vscode
Substitution performed when accepting a Kanji conversion of Japanese input method
已關閉
#194,902 建立於 2023年10月5日
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:
- Setup Japanese keyboard. Add 日本語 - ローマ字 (Japanese - Romaji) keyboard to your environment. For details, see Set up a Japanese input source on Mac.
- Disable live conversion. For details, see the section Use traditional conversion in Enter Japanese text using a Japanese input source on Mac.
- Create new text file and paste the following text to multiple lines:
これを置換したい。 - Open the Find & Replace box. (Select "Edit > Replace" in menu.)
- Click the Find field.
- Switch to Japanese keyboard. (
⌃⇧J) - Type
korewo. The input text would beこれをwith underline, which shows the text has not been accepted yet. - Type
↵(return key). The input text is accepted without conversion. - Type
chikanshi. The input text would beちかんしwith underline. - Type
␣(space bar). The input text would be converted to置換し. - Type
↵. The input text is now accepted. - Type
⇥(tab key). The focus is now on the Replace field. - Type
korewo. The input text would beこれをwith underline. - Type
↵to accept. - Type
okikae. The input text would beおきかえwith underline. - Type
␣to convert. The input text would be converted to置き換え. - Type
↵to accept. - 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