ScottyB / ac-js2

Javascript auto-completion in Emacs using Js2-mode's parser and Skewer-mode.
123 stars 8 forks source link

Add an option to avoid continually reparsing #14

Closed memeplex closed 10 years ago

memeplex commented 10 years ago

js2 provides an idle timer option that makes possible a more terse linting:

https://github.com/mooz/js2-mode/issues/29

But ac-js2 plays bad with it as it's continually forcing a new reparse. Please add an option to supress this behavior, I don't care the AST to be a bit outdated but I do care about the distracting spurious messages the reparsing is triggering.

ScottyB commented 10 years ago

Is this what you were after 93e176bb3b2e48627a71d47f19c2a8f25bec83e2? Constant messages are a bit of a pain while trying to autocomplete. I supposed I could call js2-mode-reset-timer when ac-js2-force-reparse has been disabled to prolong the time until a message would show up.

memeplex commented 10 years ago

Yes, it was exactly that. Thank you!

ScottyB commented 10 years ago

No worries :)