vs-freemarker icon indicating copy to clipboard operation
vs-freemarker copied to clipboard

VS Code freezes after you type ${

Open mmicheux opened this issue 6 years ago • 7 comments

Per the below site, VS Code freezes when you ${ and there is no closing }.

https://github.com/Microsoft/vscode/issues/52886

mmicheux avatar Aug 08 '18 15:08 mmicheux

Hi @mmicheux, thanks for submitting your issue. I was able to reproduce this on both Windows and OS X and I will start working on a fix ASAP.

dcortes92 avatar Aug 09 '18 02:08 dcortes92

Seems like it is just freezing when the text is getting too long.

@dcortes92 I am not really familiar with vscode extensions, but with regex. So is this line responsible for this? If so, I could try to rewrite it.

JPeer264 avatar Oct 31 '18 07:10 JPeer264

@dcortes92 you think following would work as regex: (\${\s*[\S\s]*?\s*})?

This matches everything between ${ and } including linebreaks. Maybe the long regex is also the cause of the mighty freeze, as the long regex checks a lot when there is no closing tag.

JPeer264 avatar Oct 31 '18 07:10 JPeer264

I have the same issue. I needed to uninstall the extension in order to continue working on my freemarker templates, which is counter productive.

gorfo66 avatar Nov 07 '18 11:11 gorfo66

Has anyone found any workarounds for this? I began experiencing this issue as well and have had to uninstall the plugin as well.

AndrewSkinner avatar Nov 29 '18 12:11 AndrewSkinner

I just experienced this issue and have uninstalled the plugin to get around it. In my case, I was missing a closing } for one of my curly brace pairs.

ethan-dowler avatar Jan 25 '19 19:01 ethan-dowler

What's current status?

This is serious issue. Working on MBP with 16 GB ram and still freezing. Uninstalling this until issue is resolved.

vivekpatel111 avatar Apr 22 '19 11:04 vivekpatel111