microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.93k stars 28.23k forks source link

"default:replacePreviousChar" causes text jitter during IME composition #211856

Open xiyaowong opened 2 months ago

xiyaowong commented 2 months ago

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


Version: 1.89.0-insider Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd Date: 2024-05-01T02:05:10.904Z Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code-Insiders/1.89.0-insider Chrome/120.0.6099.291 Electron/28.2.8 Safari/537.36


Forwarding the arguments of replacePreviousChar to default:replacePreviousChar causes text jitter during ime composition.

Code to reproduce the issue:

vscode.commands.registerCommand("type", (type) => {
    vscode.commands.executeCommand("default:type", type);
});
vscode.commands.registerCommand("replacePreviousChar", (args) => {
    vscode.commands.executeCommand("default:replacePreviousChar", args);
});

GIF:

theol0403 commented 2 months ago

Related: https://github.com/microsoft/vscode/issues/156780 https://github.com/microsoft/vscode/issues/150108 (and from a quick search there are more)