dcortes92 / vs-freemarker

FreeMarker language colorization extension for Visual Studio Code
MIT License
25 stars 14 forks source link

VS Code freezes after you type ${ #16

Open mmicheux opened 6 years ago

mmicheux commented 6 years ago

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

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

dcortes92 commented 6 years ago

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.

JPeer264 commented 5 years ago

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 commented 5 years ago

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

gorfo66 commented 5 years ago

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

AndrewSkinner commented 5 years ago

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

ethan-dowler commented 5 years ago

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.

vivekpatel111 commented 5 years ago

What's current status?

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