emmet-atom
emmet-atom copied to clipboard
Emmet slows down editing Dart files
Hi,
If we have emmet and the dartlang plugin installed, and we're editing a large Dart file (>1000 lines), and we hit 'enter', we see a delay of 1-2 seconds before the newline is inserted.
If we remove the emmet plugin, we no longer see a delay.
Could it be possible that Emmet is trying to do work inside of a Dart file?
Thanks!
Here is the plugin: https://github.com/dart-atom/dartlang
cc @devoncarew
For background, when we first saw this issue a few weeks ago, I did some profiling in devtools and 90% of the time was spent in emmet and regexs.
Possibly the same issue? #317
I had the same problem with every file > 700 lines. I just commented out in packages/emmet/keymaps/emmet.cson:
'atom-pane atom-text-editor[data-grammar~="html"]:not([mini]):not(.autocomplete-active), atom-pane atom-text-editor[data-grammar~="xml"]:not([mini]):not(.autocomplete-active)':
'enter': 'emmet:insert-formatted-line-break-only'
and added a custom one in my own keymap file:
'atom-pane atom-text-editor[data-grammar~="xml"]:not([mini]):not(.autocomplete-active)':
'enter': 'editor:new-line'
When I hit enter, there is no lag anymore.
This issue seems to be fixed already?
the issue still opened ? We need Dart because of Flutter