ternjs / tern_for_vim

Tern plugin for Vim
MIT License
1.83k stars 100 forks source link

g:tern_request_timeout default value #160

Open pangchol opened 7 years ago

pangchol commented 7 years ago

I think the default value of g:tern_request_timeout need set to biger than 1. cause I ofen get the ”time out“ warning when I add some ”loadEagerly“ files in .tern_project. it obvious that 1 second is no enough to get the query return when the project is more than one file.

marijnh commented 7 years ago

Does attached change help? It pre-analyzes the files that are loaded eagerly to avoid taking too long on the first request. A pull request that makes it possible to configure the timeout would also be accepted.