vscode-auto-close-tag icon indicating copy to clipboard operation
vscode-auto-close-tag copied to clipboard

Editing/Saving SVG file crashes CodeHelper process

Open udyux opened this issue 6 years ago • 0 comments

  • VSCode Version 1.27.2
  • MacOS Version 10.13.6
  • Auto Close Tag Version 0.5.6

Note: I don't know if the issue is isolated to MacOS.

I'm uncertain if it happens on save or while editing, but I do know that the effects are visible after saving. The issue occurs 80% of the time when following the steps to reproduce.

After saving any .svg file, my MacBook's fan starts up. Checking the ActivityMonitor app, there is a CodeHelper process hovering around 100% CPU, even after quitting VSCode. I need to kill the process manually to stop it.

If I open a file and save it, then open another and save that one, I have two stuck processes at 100% CPU each. Although I haven't investigated this behaviour further, it leads me to assume that each file opened then saved will create another process that crashes.

Steps to Reproduce:

  1. Open an SVG file (by default, VSCode sets the language to XML)
  2. Make an edit (like adding a space or a newline)
  3. Save the file

Troubleshooting steps:

  1. Disable all extensions
  2. Repeat steps to reproduce (issue no longer present)
  3. Enable only Auto Close Tag extension
  4. Repeat steps to reproduce (issue is back)

Temporary solution:

  • Remove xml from the auto-close-tag.activationOnLanguage setting.

udyux avatar Sep 28 '18 17:09 udyux