vscode: Freeze when fjfj -> jfjf
- VSCode Version: 1.42.1 (user setup)
- OS Version: Windows_NT x64 10.0.18363
Steps to Reproduce:
ctrl
+n
to open empty document- type f and j for about 60 characters, begin with the f and stop with the j
Enter
to create a new line- type f and j again, but start with j this time
- VScode should crash or freeze
Does this issue occur when all extensions are disabled?: Yes
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (10 by maintainers)
Commits related to this issue
- early check for strong first matches, helps with https://github.com/microsoft/vscode/issues/91807 — committed to microsoft/vscode by jrieken 4 years ago
@jrieken I was not able to reproduce, but it has nothing to do with the typing itself, it has to do with completions scoring. I was able to open the CPU profile from @deepak1556 and it looks like fuzzy scoring in suggestions (presumambly due to word suggestions) is the culprit:
I am able to repro it on macOS as well, attaching the profile keypress-freeze-91807.zip
The issue is also seen on monaco editor with both firefox and chrome, so not an issue specific to the runtime, looping in @alexdima