ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

Doesn't load files no listed in the" loadEagerly" .tern-project file #60

Closed TimothyWrightSoftware closed 9 years ago

TimothyWrightSoftware commented 9 years ago

I have gotten everything to work except that only files in the "loadEagerly" path can be found. Is there a setting for looking within other folders for lazy loading that I am missing?

marijnh commented 9 years ago

What do you mean by lazy loading? Files are loaded when you set them to be loaded eagerly, when you interact with them though your editor, or when a dependency-management plugin decides another file depends on them. There is no other mechanism for loading them.

TimothyWrightSoftware commented 9 years ago

That was my question. It wasn't clear to me what causes a file to be loaded. I didn't see any mention of a dependency-management plugin in the docs. Could you please point me to that section?

marijnh commented 9 years ago

Plugins for node and requirejs try to automatically notice and load dependencies.