-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Keystroke lag in TypeScript #7415
Comments
Likely related to microsoft/vscode#65876 |
I have the same issue with the minimal extension shown by alex here microsoft/vscode#65876 (comment) Removing
reduces the My current guess is that |
VSCode Neovim bypasses this issue by disposing its "type" command handler when entering insert mode. They register a keybind on "escape", "ctrl+[", and "ctrl+c" to return to normal mode and re-register the "type" handler. I'm a vim newbie, I don't know if keystrokes in insert mode are needed for anything other than recording*. Maybe someone more experienced can get me up to speed. Looking into these extensions has been pleasant so far. If I get confirmation that VSCodeVim could replicate VSCode Neovim's behavior, I'd like to try fixing VSCodeVim. *UPDATE: ctrl+k and ctrl+v for digraphs and unicode. Might be doable with keybinds. The neovim extension doesn't support these. |
Looks like a good investigation. Thanks @Cre3per. I decided to switch to the NeoVim extension for the reasons outlined by you and summarized by me here: It's also a more complete Vim implementation because it's literally Vim, not an emulation. If the extreme slowdown in VSCode/VSCodeVim is ever solved, I'll probably switch back since the idea of having Vim entirely implemented in JavaScript appeals to me. |
@Cre3per I noticed also delaying the quick suggestions pop-up |
Describe the bug
Noticeable keystroke lag when typing in TypeScript files.
Only observed when NativeScript is installed. I don't have issues with other TypeScript projects. Likely caused by many/large .d.ts files.
Ways to stop the lag
editor.quickSuggestions
(This is my best workaround so far)To Reproduce
Steps to reproduce the behavior:
Alternatively, after the file has been opened and js/ts initialized
Expected behavior
Typing is smooth and snappy. There are no noticeable delays after pressing a key
Environment (please complete the following information):
All non-default extensions are disabled.
Additional context
Developer Tools Log while typing the letters "le" of "console" (
handleKeyEvent()
takes >100ms). The slower I type the earlier the slow keystroke occurs. The written word and letters don't matter.I have traced the lag down to
execute.ts executeTransformations()
Thanks for the awesome extension, it has served me well so far!
The text was updated successfully, but these errors were encountered: