vscode: Freeze when fjfj -> jfjf

  • VSCode Version: 1.42.1 (user setup)
  • OS Version: Windows_NT x64 10.0.18363

Steps to Reproduce:

  1. ctrl + n to open empty document
  2. type f and j for about 60 characters, begin with the f and stop with the j
  3. Enter to create a new line
  4. type f and j again, but start with j this time
  5. VScode should crash or freeze

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

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@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:

image

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