Closed lebedev closed 9 years ago
Yes, files are only pushed to the inference engine when:
loadEagerly
project optionIn your situation, I think adding a loadEagerly
option (maybe using wilcards, like test/*.js
), is the way to go.
You run a query on them from your editor
Thanks for the answer. But the docs say that
By default, local files are loaded into the Tern server when they are opened by the editor.
which turns out to be untrue. Maybe you should edit that sentence about file loading and specify that conditions?
That's a good point. Attached patch should help there.
I have a
test
folder with 2 files:a.js
andb.js
:a.js
contents:b.js
contents:I open those two files, enter
obj_
ina.js
and there's notobj_b
:Ok, I switch to
b.js
. It hasobj_a
in auto-completion list: Sometimes there are objects from both files in auto-completion list in filea.js
, and there's onlyobj_b
inb.js
, likeb.js
was loaded intern
anda.js
wasn't. It seems like I have to show some activity in one file for it to load intern
, like entering a text, trigger auto-completion or saving it. I don't know.