mortalapeman / LT-TernJS

A TernJS plugin for Light Table
Other
32 stars 4 forks source link

Ability to configure JSON definition files for Tern #1

Closed mortalapeman closed 10 years ago

mortalapeman commented 10 years ago

Currently, the nodejs file used to setup the Tern server loads all JSON defs found in the provided node module. We need a way to configure which defs get loaded by the tern process that fits with the Light Table architecture.

I was thinking of using behaviors for the configuration like below:

{:+ {:tern-client [(:lt.plugins.tern/use-def "jQuery.json")]}}

Since behaviors can be setup on the workspace level, this seemed like a good path to investigate. We would need to a way inform the Tern server if behaviors change and I'm sure there are other issues I haven't thought of just yet.

mortalapeman commented 10 years ago

Implemented in a072533