-
Notifications
You must be signed in to change notification settings - Fork 100
Description
I have an object with multiple properties:
export const colors = {
GREEN: '#7fad33',
DARK_GREEN: '#04bb79',
LIGHT_GREEN: '#b0cc7f',
};
When I type colors.<C-x><C-o>
to omni-complete these properties, it takes a few good seconds to load the results. During this time, my editor is blocked and I cannot take any further actions. This happens for a 27-line file consisting of only two objects: colors
and fonts
.
My issue displays the same symptoms as #60, so I followed the steps in that issue first. Notably, I ran time bin/test
from within my tern folder. The results are:
Ran 597 tests from 100 files.
All passed.
bin/test 12.42s user 0.37s system 116% cpu 11.007 total
On the other hand, the demo on http://ternjs.net/doc/demo.html works very quickly for me.
This happens with tern_for_vim running as the only completion plugin (no YouCompleteMe) so I cannot apply the same solution as in the linked issue.
From your instructions in that issue, I understand that the problem is on the node side. What steps can I take to correct this on my machine?