diff --git a/plugin.edn b/plugin.edn index 7c4d167..36d7709 100644 --- a/plugin.edn +++ b/plugin.edn @@ -1,5 +1,5 @@ {:name "TernJS" - :version "0.1.9" + :version "0.1.10" :author "Eric Pritchett" :source "https://github.com/mortalapeman/LT-TernJS" :desc "Provides intelligent auto-complete, inline docs and jump to definition for JavaScript files in Light Table." diff --git a/src/lt/plugins/tern.cljs b/src/lt/plugins/tern.cljs index b3e43f1..2fb27cb 100644 --- a/src/lt/plugins/tern.cljs +++ b/src/lt/plugins/tern.cljs @@ -16,9 +16,11 @@ [lt.util.load :as load]) (:require-macros [lt.macros :refer [behavior defui]])) -(def plugin-dir (if-let [dir plugins/*plugin-dir*] - dir - (files/join plugins/user-plugins-dir "TernJS"))) +(def plugin-dir + (if-let [dir plugins/*plugin-dir*] + dir + (files/join plugins/user-plugins-dir "TernJS"))) + (def tern-dir (files/join plugin-dir "node_modules" "tern")) (def tern-lib-dir (files/join tern-dir "defs")) (def tern-plugin-dir (files/join tern-dir "plugin")) @@ -32,35 +34,58 @@ (def fs (js/require "fs")) -(defn readdir [dir cb] +(defn readdir [dir cb] + "Accepts a string 'dir' and a callback function 'cb' of the form + (fn [err result]). Returns nil." (fs.readdir dir cb)) (defn stat [path cb] + "Accepts a string 'path' and a callback function 'cb' of the form + (fn [err result]). Returns nil." (fs.stat path cb)) (defn gitdir? [p] + "Accepts a string 'p'. Returns true if 'p' appears to be a git + repository." (= ".git" (files/basename p))) (defn svndir? [p] + "Accepts a string 'p'. Returns true if 'p' appears to be a + subversion directory." (= ".svn" (files/basename p))) (defn nodemoduledir? [p] + "Accepts a string 'p'. Returns true if 'p' appears to be a node + submodule directory." (= "node_modules" (files/basename p))) (defn jsfile? [p] + "Accepts a string 'p'. Retruns true if 'p' appears to be a javascript file." (boolean (re-find js-ext p))) (defn plugin-jsfile? [p] + "Accepts a string 'p'. Returns true if 'p' appears to be a Light Table plugin + file." (boolean (and (jsfile? p) (re-find #"_compiled" p)))) (defmulti async-filter-walk + "Accepts any type 'arg', a function 'ignore?' of the form (fn [p stats]) and + a function 'done' of the form (fn [err result]). Return nil. + + ignore? - Accepts a string 'p' and a file system stats object 'stats'. Returns + true if the 'p' should be ignored when walking the filesystem." (fn [arg ignore? done] (string? arg))) (defmethod async-filter-walk true [dir ignore? done] + "Accepts a string 'dir', a function 'ignore?' of the form (fn [p stats]) and + a function 'done' of the form (fn [err result]). Returns nil. + + ignore? - Accepts a string 'p' and a file system stats object 'stats'. Returns + true if the 'p' should be ignored when walking the filesystem." (let [results (atom []) error (atom nil) handle-error (fn [e] @@ -101,6 +126,11 @@ (defmethod async-filter-walk false [dirs ignore? done] + "Accepts a collection strings 'dirs', a function 'ignore?' of the form + (fn [p stats]) and a function 'done' of the form (fn [err result]). Returns nil. + + ignore?: Accepts a string 'p' and a file system stats object 'stats'. Returns + true if the 'p' should be ignored when walking the filesystem." (let [pending (atom (count dirs)) results (atom []) error (atom nil) @@ -119,6 +149,11 @@ (async-filter-walk p ignore? cb)))) (defn tern-ignore [p stats] + "Accepts a string 'p' and a file system stats object 'stats'. Returns true + if the path should be ignored when walking the file system for javascript files. + + Ignores most version control and node modules directories. Attempts not to load + files that aren't javascript files or appear to be compiled Light Table plugins." (if (.isDirectory stats) (or (gitdir? p) (svndir? p) @@ -127,6 +162,9 @@ (not (jsfile? p))))) (defn current-ws-jsfiles [done] + "Accepts a callback 'done' of the form (fn [err result]). Returns nil. + + Finds all the javascript files in the current workspace." (let [ws @workspace/current-ws ds (:folders ws) fs (filter jsfile? (:files ws))] @@ -136,6 +174,11 @@ (done e (concat fs r))))))) (defn dir->jsfiles [dir done] + "Accepts a 'string' dir and a callback function of the form + (fn [err result]). Returns nil. + + Finds all the javascript files for a given directory. Ignores + version control and node module directories." (async-filter-walk dir tern-ignore done)) ;;**************************************************** @@ -143,37 +186,61 @@ ;;**************************************************** (defn tern-msg [t d] + "Accepts a keyword/string 't' and any type 'd'. Returns a tern message of the form + {:type 't' :payload 'd'}." {:type (name t) :payload d}) (defn ed->path [editor] + "Accepts an editor object 'editor'. Returns a string, the path to + the given editor's file." (or (get-in @editor [:info :path]) "untitled")) (defn ed->query ([editor type] + "Accepts an editor object 'editor' and a keyword/string 'type'. Returns + a map representing the query field of a tern request see [1] for more + information. + + [1] http://ternjs.net/doc/manual.html#protocol." (ed->query editor type {})) ([editor type query-ops] + "Accepts an editor object 'editor', a keyword/string 'type' and a map + of extra query options 'query-ops'. Returns a map representing the + query field of a tern request see [1] for more information. + + query-ops: A map of extra query fields that will be merged + with the final result. + + [1] http://ternjs.net/doc/manual.html#protocol." (merge {:type (name type) :file (ed->path editor) :end (ed/->cursor editor)} query-ops))) - -(defn ed->fullfile [editor] - {:name (ed->path editor) - :text (ed/->val editor) - :type "full"}) - (defn indent [s] + "Accepts a string 's'. Returns a count of whitespace characters at the + begining of the string. + + Spaces and tabs are counted together." (->> (map #(re-find #"[ \t]" %) s) - (take-while (comp true? boolean)) + (take-while identity) count)) (defn jsfn? [s] + "Accepts a string 's'. Returns true of the string appears to contain + the start of a javascript function." (boolean (re-find #"function" s))) (defn back-search [strs max-indent] + "Accepts a collection of strings 'strs' and an integer 'max-indent'. Returns + a map with information about the next string with an indent one less than + 'max-indent' if one exists, otherwise returns nil. + + Used for the backwards search in partial-range. Searchs forward in the + collection for first instance of a line that is a javascript function and + has an indent level one less than 'max-indent'." (letfn [(line-info [i v] {:index i :indent (indent v) @@ -185,6 +252,9 @@ first))) (defn forward-search [strs max-indent] + "Accepts a collection of strings 'strs' and an integer 'max-indent'. Returns + a map with the index of a line with an indent one less that 'max-indent' if + one exists, otherwise returns nil." (letfn [(line-info [i v] {:index i :blockend? (>= max-indent (indent v))})] @@ -194,24 +264,54 @@ first))) (defn partial-range [editor] - (let [{:keys [line ch]} (ed/->cursor editor) + "Accepts and editor object 'editor'. Returns a map containing the line and + character information used to send a part of a file for a tern request." + (let [;; Find current cursor position + {:keys [line ch]} (ed/->cursor editor) + + ;; Determine how far back we can search min-line (max 0 (- line 50)) + + ;; Determine how far forward we can search max-line (min (.lastLine (ed/->cm-ed editor)) (+ line 20)) + + ;; Grab the text for the search range. text (ed/range editor {:line min-line :ch 0} {:line max-line :ch 0}) + + ;; Split the text by new lines and partion into + ;; backward/forward search ranges. [b f] (partition-all (- line min-line) (.split text "\n")) - max-indent (indent (first f)) - back-result (back-search (reverse b) max-indent) + + ;; Find the indent of the current line. + current-indent (indent (first f)) + + ;; Find the furthest function declaration line back with + ;; one less than the current indent. + back-result (back-search (reverse b) current-indent) + + ;; Get the index from our back search or use the maximum index from + ;; the current position. back-index (or (:index back-result) 49) + + ;; Use the indent of the back result and attempt to find closing + ;; block. forward-index (or (:index (forward-search f (:indent back-result))) 20) + + ;; Find last line of forward search or use end of file. to-line (min (+ line forward-index) max-line)] {:from {:line (max 0 (- line back-index 1)) :ch 0} :to {:line to-line + + ;; If our to-line is the end of the file, use the character + ;; position from current cursor position :ch (if (= to-line max-line) ch 0)}})) (defn ed->partfile [editor] + "Accepts an editor object 'editor'. Returns a map respresenting a partial tern + file used for tern requests." (let [{:keys [from to]} (partial-range editor) offset-line (max 0 (:line from))] {:name (ed->path editor) @@ -219,32 +319,56 @@ :text (ed/range editor from to) :type "part"})) +(defn ed->fullfile [editor] + "Accepts an editor object 'editor'. Returns a entry map representing + a file for a tern request. + + Captures the file in its entirety. Should only be used on smaller files + under 250 lines for performance reasons." + {:name (ed->path editor) + :text (ed/->val editor) + :type "full"}) + (defn ed->mime [editor] + "Accepts an editor object 'editor'. Returns the current mime type of 'editor'." (get-in @editor [:info :mime])) - (defn ed->line-count [editor] + "Accepts an editor object 'editor'. Returns the line count of the current editor." (ed/line-count (ed/->cm-ed editor))) (defn ed->req ([editor type] + "Accepts and editor object 'editor' and a keyword/string 'type'. Returns a + fully constructed map representation of a tern request for a single file." (ed->req editor type {})) ([editor type query-ops] + "Accepts and editor object 'editor', a keyword/string 'type' and a map + 'query-ops'. Returns a fulling constructed map representation of a tern + request for a single file." (let [req {:query (ed->query editor type query-ops) :files [(if (> (ed->line-count editor) 250) (ed->partfile editor) (ed->fullfile editor))]}] (if-let [offset (-> req :files first :offsetLines)] - (tern-msg :request (-> req - (update-in [:query :end :line] - offset) - (assoc-in [:query :file] "#0"))) - (tern-msg :request req))))) + ;; Reqests for partial files require some modification + (-> (update-in req [:query :end :line] - offset) + (assoc-in [:query :file] "#0")) + req)))) ;;**************************************************** ;; Message Helpers ;;**************************************************** (defn id [msg] + "Accepts a message js object 'msg'. Returns the id field of the message if + found, otherwise returns nil. + + Handles javascript repesentations of message objects from Light Tables + client system. Depending on the origin of the message, its id may be an + integer or a symbol encoded as a string. Messages send with callbacks + use a symbol encoded as a string. Messages sent without a callback use + the object's id for the callback lookup." (let [v (.-cb msg)] (cond (string? v) (symbol v) @@ -252,31 +376,52 @@ :else nil))) (defn id? [msg] + "Accepts a message js object 'msg'. Returns true if a callback id can be + found on the message." (boolean (id msg))) (defn err [msg] + "Accepts a message js object 'msg'. Returns an error object if found on + the message." (.-err msg)) (defn err? [msg] + "Accepts a message js object 'msg'. Returns true if the message contains? + an error field." (boolean (err msg))) (defn command [msg] + "Accepts a message js object 'msg'. Returns the value of the command + field for 'msg'. + + If a message sent with Light Table's client API does not specify a + callback, this command string is transformed to a keyword and used + as a behavior trigger." (.-command msg)) (defn payload [msg] + "Accepts a message js object 'msg'. Returns the nested payload field of + the message if it exists, otherwise returns nil." (and (.-data msg) (.-payload (.-data msg)))) (defn stack [msg] + "Accepts a message js object 'msg'. Returns stack field value of 'msg'." (.-stack msg)) (defn init? [msg] + "Accepts a message js object 'msg'. Returns true if the message is an init + message." (and (not (id? msg)) (= (command msg) "init"))) (defn ignore? [msg] + "Accepts a message js object 'msg'. Returns true if the message was meant + only for it's side effects." (= (command msg) "ignore")) (defn log? [msg] + "Accepts a message js object 'msg'. Returns true if the message is a log + message." (= (command msg) "log")) ;;**************************************************** @@ -284,6 +429,7 @@ ;;**************************************************** (defn check-server-path [] + "Returns true if we are able to find the ternserver javascript file." (let [exists (files/exists? ternserver-path)] (when-not exists (notifos/set-msg! (str "Could not find Tern server executable" file) {:class "error"})) @@ -296,6 +442,10 @@ (behavior ::send :triggers #{:send!} + :doc "Accepts a lt object 'this' and any type 'message'. + + Sends the message to the tern worker associated with current object + as a plain old javascript object." :reaction (fn [this msg] (.send (::worker @this) (clj->js msg)))) @@ -327,7 +477,7 @@ (log? m) (.log js/console (payload m)) (ignore? m) nil (err? m) (object/raise this :error m) - (id? m) (object/raise this :message [(id m) (command m) (payload m)]) + (id? m) (object/raise this :message [(id m) (command m) (payload m)]) (init? m) (do (object/merge! this {:connecting false}) (notifos/done-working (str "Connected to: " (:name @this))) @@ -394,10 +544,24 @@ (object/object* ::tern.client :tags #{:client :tern.client} :name "Tern Javascript Server" + + ;; Known fields provided for documentation + :connecting false + :connected false + :config nil + ::worker nil :queue []) -(def tern-client (object/create ::tern.client)) +(defn tern-client-factory [] + "Returns an object with the :tern.client tag by first looking to see if any + already exists. If none exist, creates a new lt object." + (if-let [obj (first (object/by-tag :tern.client))] + obj + (object/create ::tern.client))) + + +(def tern-client (tern-client-factory)) (cmd/command {:command :tern.send-current-document @@ -498,7 +662,7 @@ (behavior ::trigger-update-hints :triggers #{:editor.javascript.hints.update!} :reaction (fn [editor] - (let [req (ed->req editor :completions) + (let [req (tern-msg :request (ed->req editor :completions)) cb (fn [_ data] (object/raise editor :editor.javascript.hints.result data))] (clients/send tern-client :request req :only cb)))) @@ -572,7 +736,7 @@ (behavior ::javascript-doc :triggers #{:editor.doc} :reaction (fn [editor] - (let [req (ed->req editor :type {:docs true :types true}) + (let [req (tern-msg :request (ed->req editor :type {:docs true :types true})) loc (ed/->cursor editor) cb (fn [_ result] (let [doc (merge (object/raise-reduce editor :format+ @@ -605,7 +769,7 @@ (behavior ::jump-to-definition :triggers #{:editor.jump-to-definition-at-cursor!} :reaction (fn [editor] - (let [req (ed->req editor :definition {:lineCharPositions true}) + (let [req (tern-msg :request (ed->req editor :definition {:lineCharPositions true})) cb (fn [_ data] (object/raise lt.objs.jump-stack/jump-stack :jump-stack.push! diff --git a/ternjs_compiled.js b/ternjs_compiled.js index 1238ea8..3f6d5e1 100644 --- a/ternjs_compiled.js +++ b/ternjs_compiled.js @@ -64,6 +64,13 @@ lt.plugins.tern.plugin_jsfile_QMARK_ = (function plugin_jsfile_QMARK_(p){return } })()); }); +/** +* Accepts any type 'arg', a function 'ignore?' of the form (fn [p stats]) and +* a function 'done' of the form (fn [err result]). Return nil. +* +* ignore? - Accepts a string 'p' and a file system stats object 'stats'. Returns +* true if the 'p' should be ignored when walking the filesystem. +*/ lt.plugins.tern.async_filter_walk = (function (){var method_table__7229__auto__ = cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);var prefer_table__7230__auto__ = cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);var method_cache__7231__auto__ = cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);var cached_hierarchy__7232__auto__ = cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);var hierarchy__7233__auto__ = cljs.core.get.call(null,cljs.core.PersistentArrayMap.EMPTY,new cljs.core.Keyword(null,"hierarchy","hierarchy",3129050535),cljs.core.get_global_hierarchy.call(null));return (new cljs.core.MultiFn("async-filter-walk",((function (method_table__7229__auto__,prefer_table__7230__auto__,method_cache__7231__auto__,cached_hierarchy__7232__auto__,hierarchy__7233__auto__){ return (function (arg,ignore_QMARK_,done){return typeof arg === 'string'; });})(method_table__7229__auto__,prefer_table__7230__auto__,method_cache__7231__auto__,cached_hierarchy__7232__auto__,hierarchy__7233__auto__)) @@ -134,45 +141,45 @@ return (function (e,paths){if(cljs.core.truth_(e)) {return done.call(null,null,cljs.core.deref.call(null,results)); } else {if(new cljs.core.Keyword(null,"else","else",1017020587)) -{var pending = cljs.core.atom.call(null,paths.length);var seq__9613 = cljs.core.seq.call(null,paths);var chunk__9615 = null;var count__9616 = 0;var i__9617 = 0;while(true){ -if((i__9617 < count__9616)) -{var x = cljs.core._nth.call(null,chunk__9615,i__9617);var p_9651 = lt.objs.files.join.call(null,dir,x);lt.plugins.tern.stat.call(null,p_9651,stat_cb.call(null,pending,done,p_9651)); +{var pending = cljs.core.atom.call(null,paths.length);var seq__7852 = cljs.core.seq.call(null,paths);var chunk__7854 = null;var count__7855 = 0;var i__7856 = 0;while(true){ +if((i__7856 < count__7855)) +{var x = cljs.core._nth.call(null,chunk__7854,i__7856);var p_7900 = lt.objs.files.join.call(null,dir,x);lt.plugins.tern.stat.call(null,p_7900,stat_cb.call(null,pending,done,p_7900)); { -var G__9652 = seq__9613; -var G__9653 = chunk__9615; -var G__9654 = count__9616; -var G__9655 = (i__9617 + 1); -seq__9613 = G__9652; -chunk__9615 = G__9653; -count__9616 = G__9654; -i__9617 = G__9655; +var G__7901 = seq__7852; +var G__7902 = chunk__7854; +var G__7903 = count__7855; +var G__7904 = (i__7856 + 1); +seq__7852 = G__7901; +chunk__7854 = G__7902; +count__7855 = G__7903; +i__7856 = G__7904; continue; } } else -{var temp__4092__auto__ = cljs.core.seq.call(null,seq__9613);if(temp__4092__auto__) -{var seq__9613__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__9613__$1)) -{var c__7119__auto__ = cljs.core.chunk_first.call(null,seq__9613__$1);{ -var G__9656 = cljs.core.chunk_rest.call(null,seq__9613__$1); -var G__9657 = c__7119__auto__; -var G__9658 = cljs.core.count.call(null,c__7119__auto__); -var G__9659 = 0; -seq__9613 = G__9656; -chunk__9615 = G__9657; -count__9616 = G__9658; -i__9617 = G__9659; +{var temp__4092__auto__ = cljs.core.seq.call(null,seq__7852);if(temp__4092__auto__) +{var seq__7852__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__7852__$1)) +{var c__7119__auto__ = cljs.core.chunk_first.call(null,seq__7852__$1);{ +var G__7905 = cljs.core.chunk_rest.call(null,seq__7852__$1); +var G__7906 = c__7119__auto__; +var G__7907 = cljs.core.count.call(null,c__7119__auto__); +var G__7908 = 0; +seq__7852 = G__7905; +chunk__7854 = G__7906; +count__7855 = G__7907; +i__7856 = G__7908; continue; } } else -{var x = cljs.core.first.call(null,seq__9613__$1);var p_9660 = lt.objs.files.join.call(null,dir,x);lt.plugins.tern.stat.call(null,p_9660,stat_cb.call(null,pending,done,p_9660)); +{var x = cljs.core.first.call(null,seq__7852__$1);var p_7909 = lt.objs.files.join.call(null,dir,x);lt.plugins.tern.stat.call(null,p_7909,stat_cb.call(null,pending,done,p_7909)); { -var G__9661 = cljs.core.next.call(null,seq__9613__$1); -var G__9662 = null; -var G__9663 = 0; -var G__9664 = 0; -seq__9613 = G__9661; -chunk__9615 = G__9662; -count__9616 = G__9663; -i__9617 = G__9664; +var G__7910 = cljs.core.next.call(null,seq__7852__$1); +var G__7911 = null; +var G__7912 = 0; +var G__7913 = 0; +seq__7852 = G__7910; +chunk__7854 = G__7911; +count__7855 = G__7912; +i__7856 = G__7913; continue; } } @@ -208,45 +215,45 @@ if(cljs.core._EQ_.call(null,0,cljs.core.deref.call(null,pending))) } } });})(pending,results,error)) -;var seq__9619 = cljs.core.seq.call(null,dirs);var chunk__9620 = null;var count__9621 = 0;var i__9622 = 0;while(true){ -if((i__9622 < count__9621)) -{var p = cljs.core._nth.call(null,chunk__9620,i__9622);lt.plugins.tern.async_filter_walk.call(null,p,ignore_QMARK_,cb); +;var seq__7858 = cljs.core.seq.call(null,dirs);var chunk__7859 = null;var count__7860 = 0;var i__7861 = 0;while(true){ +if((i__7861 < count__7860)) +{var p = cljs.core._nth.call(null,chunk__7859,i__7861);lt.plugins.tern.async_filter_walk.call(null,p,ignore_QMARK_,cb); { -var G__9665 = seq__9619; -var G__9666 = chunk__9620; -var G__9667 = count__9621; -var G__9668 = (i__9622 + 1); -seq__9619 = G__9665; -chunk__9620 = G__9666; -count__9621 = G__9667; -i__9622 = G__9668; +var G__7914 = seq__7858; +var G__7915 = chunk__7859; +var G__7916 = count__7860; +var G__7917 = (i__7861 + 1); +seq__7858 = G__7914; +chunk__7859 = G__7915; +count__7860 = G__7916; +i__7861 = G__7917; continue; } } else -{var temp__4092__auto__ = cljs.core.seq.call(null,seq__9619);if(temp__4092__auto__) -{var seq__9619__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__9619__$1)) -{var c__7119__auto__ = cljs.core.chunk_first.call(null,seq__9619__$1);{ -var G__9669 = cljs.core.chunk_rest.call(null,seq__9619__$1); -var G__9670 = c__7119__auto__; -var G__9671 = cljs.core.count.call(null,c__7119__auto__); -var G__9672 = 0; -seq__9619 = G__9669; -chunk__9620 = G__9670; -count__9621 = G__9671; -i__9622 = G__9672; +{var temp__4092__auto__ = cljs.core.seq.call(null,seq__7858);if(temp__4092__auto__) +{var seq__7858__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__7858__$1)) +{var c__7119__auto__ = cljs.core.chunk_first.call(null,seq__7858__$1);{ +var G__7918 = cljs.core.chunk_rest.call(null,seq__7858__$1); +var G__7919 = c__7119__auto__; +var G__7920 = cljs.core.count.call(null,c__7119__auto__); +var G__7921 = 0; +seq__7858 = G__7918; +chunk__7859 = G__7919; +count__7860 = G__7920; +i__7861 = G__7921; continue; } } else -{var p = cljs.core.first.call(null,seq__9619__$1);lt.plugins.tern.async_filter_walk.call(null,p,ignore_QMARK_,cb); +{var p = cljs.core.first.call(null,seq__7858__$1);lt.plugins.tern.async_filter_walk.call(null,p,ignore_QMARK_,cb); { -var G__9673 = cljs.core.next.call(null,seq__9619__$1); -var G__9674 = null; -var G__9675 = 0; -var G__9676 = 0; -seq__9619 = G__9673; -chunk__9620 = G__9674; -count__9621 = G__9675; -i__9622 = G__9676; +var G__7922 = cljs.core.next.call(null,seq__7858__$1); +var G__7923 = null; +var G__7924 = 0; +var G__7925 = 0; +seq__7858 = G__7922; +chunk__7859 = G__7923; +count__7860 = G__7924; +i__7861 = G__7925; continue; } } @@ -302,16 +309,14 @@ ed__GT_query.cljs$core$IFn$_invoke$arity$3 = ed__GT_query__3; return ed__GT_query; })() ; -lt.plugins.tern.ed__GT_fullfile = (function ed__GT_fullfile(editor){return new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"name","name",1017277949),lt.plugins.tern.ed__GT_path.call(null,editor),new cljs.core.Keyword(null,"text","text",1017460895),lt.objs.editor.__GT_val.call(null,editor),new cljs.core.Keyword(null,"type","type",1017479852),"full"], null); -}); -lt.plugins.tern.indent = (function indent(s){return cljs.core.count.call(null,cljs.core.take_while.call(null,cljs.core.comp.call(null,cljs.core.true_QMARK_,cljs.core.boolean$),cljs.core.map.call(null,(function (p1__9623_SHARP_){return cljs.core.re_find.call(null,/[ \t]/,p1__9623_SHARP_); +lt.plugins.tern.indent = (function indent(s){return cljs.core.count.call(null,cljs.core.take_while.call(null,cljs.core.identity,cljs.core.map.call(null,(function (p1__7862_SHARP_){return cljs.core.re_find.call(null,/[ \t]/,p1__7862_SHARP_); }),s))); }); lt.plugins.tern.jsfn_QMARK_ = (function jsfn_QMARK_(s){return cljs.core.boolean$.call(null,cljs.core.re_find.call(null,/function/,s)); }); lt.plugins.tern.back_search = (function back_search(strs,max_indent){var line_info = (function line_info(i,v){return new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"index","index",1114250308),i,new cljs.core.Keyword(null,"indent","indent",4124632094),lt.plugins.tern.indent.call(null,v),new cljs.core.Keyword(null,"jsfn?","jsfn?",1115324928),lt.plugins.tern.jsfn_QMARK_.call(null,v)], null); }); -var match_QMARK_ = (function match_QMARK_(p__9633){var map__9635 = p__9633;var map__9635__$1 = ((cljs.core.seq_QMARK_.call(null,map__9635))?cljs.core.apply.call(null,cljs.core.hash_map,map__9635):map__9635);var indent = cljs.core.get.call(null,map__9635__$1,new cljs.core.Keyword(null,"indent","indent",4124632094));var jsfn_QMARK_ = cljs.core.get.call(null,map__9635__$1,new cljs.core.Keyword(null,"jsfn?","jsfn?",1115324928));var and__6359__auto__ = jsfn_QMARK_;if(cljs.core.truth_(and__6359__auto__)) +var match_QMARK_ = (function match_QMARK_(p__7872){var map__7874 = p__7872;var map__7874__$1 = ((cljs.core.seq_QMARK_.call(null,map__7874))?cljs.core.apply.call(null,cljs.core.hash_map,map__7874):map__7874);var indent = cljs.core.get.call(null,map__7874__$1,new cljs.core.Keyword(null,"indent","indent",4124632094));var jsfn_QMARK_ = cljs.core.get.call(null,map__7874__$1,new cljs.core.Keyword(null,"jsfn?","jsfn?",1115324928));var and__6359__auto__ = jsfn_QMARK_;if(cljs.core.truth_(and__6359__auto__)) {return (max_indent >= indent); } else {return and__6359__auto__; @@ -323,9 +328,9 @@ lt.plugins.tern.forward_search = (function forward_search(strs,max_indent){var l }); return cljs.core.first.call(null,cljs.core.filter.call(null,new cljs.core.Keyword(null,"blockend?","blockend?",1886862403),cljs.core.drop.call(null,1,cljs.core.map_indexed.call(null,line_info,strs)))); }); -lt.plugins.tern.partial_range = (function partial_range(editor){var map__9638 = lt.objs.editor.__GT_cursor.call(null,editor);var map__9638__$1 = ((cljs.core.seq_QMARK_.call(null,map__9638))?cljs.core.apply.call(null,cljs.core.hash_map,map__9638):map__9638);var ch = cljs.core.get.call(null,map__9638__$1,new cljs.core.Keyword(null,"ch","ch",1013907415));var line = cljs.core.get.call(null,map__9638__$1,new cljs.core.Keyword(null,"line","line",1017226086));var min_line = (function (){var x__6678__auto__ = 0;var y__6679__auto__ = (line - 50);return ((x__6678__auto__ > y__6679__auto__) ? x__6678__auto__ : y__6679__auto__); +lt.plugins.tern.partial_range = (function partial_range(editor){var map__7877 = lt.objs.editor.__GT_cursor.call(null,editor);var map__7877__$1 = ((cljs.core.seq_QMARK_.call(null,map__7877))?cljs.core.apply.call(null,cljs.core.hash_map,map__7877):map__7877);var ch = cljs.core.get.call(null,map__7877__$1,new cljs.core.Keyword(null,"ch","ch",1013907415));var line = cljs.core.get.call(null,map__7877__$1,new cljs.core.Keyword(null,"line","line",1017226086));var min_line = (function (){var x__6678__auto__ = 0;var y__6679__auto__ = (line - 50);return ((x__6678__auto__ > y__6679__auto__) ? x__6678__auto__ : y__6679__auto__); })();var max_line = (function (){var x__6685__auto__ = lt.objs.editor.__GT_cm_ed.call(null,editor).lastLine();var y__6686__auto__ = (line + 20);return ((x__6685__auto__ < y__6686__auto__) ? x__6685__auto__ : y__6686__auto__); -})();var text = lt.objs.editor.range.call(null,editor,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"line","line",1017226086),min_line,new cljs.core.Keyword(null,"ch","ch",1013907415),0], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"line","line",1017226086),max_line,new cljs.core.Keyword(null,"ch","ch",1013907415),0], null));var vec__9639 = cljs.core.partition_all.call(null,(line - min_line),text.split("\n"));var b = cljs.core.nth.call(null,vec__9639,0,null);var f = cljs.core.nth.call(null,vec__9639,1,null);var max_indent = lt.plugins.tern.indent.call(null,cljs.core.first.call(null,f));var back_result = lt.plugins.tern.back_search.call(null,cljs.core.reverse.call(null,b),max_indent);var back_index = (function (){var or__6371__auto__ = new cljs.core.Keyword(null,"index","index",1114250308).cljs$core$IFn$_invoke$arity$1(back_result);if(cljs.core.truth_(or__6371__auto__)) +})();var text = lt.objs.editor.range.call(null,editor,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"line","line",1017226086),min_line,new cljs.core.Keyword(null,"ch","ch",1013907415),0], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"line","line",1017226086),max_line,new cljs.core.Keyword(null,"ch","ch",1013907415),0], null));var vec__7878 = cljs.core.partition_all.call(null,(line - min_line),text.split("\n"));var b = cljs.core.nth.call(null,vec__7878,0,null);var f = cljs.core.nth.call(null,vec__7878,1,null);var current_indent = lt.plugins.tern.indent.call(null,cljs.core.first.call(null,f));var back_result = lt.plugins.tern.back_search.call(null,cljs.core.reverse.call(null,b),current_indent);var back_index = (function (){var or__6371__auto__ = new cljs.core.Keyword(null,"index","index",1114250308).cljs$core$IFn$_invoke$arity$1(back_result);if(cljs.core.truth_(or__6371__auto__)) {return or__6371__auto__; } else {return 49; @@ -339,9 +344,11 @@ lt.plugins.tern.partial_range = (function partial_range(editor){var map__9638 = })();return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"from","from",1017056028),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"line","line",1017226086),(function (){var x__6678__auto__ = 0;var y__6679__auto__ = ((line - back_index) - 1);return ((x__6678__auto__ > y__6679__auto__) ? x__6678__auto__ : y__6679__auto__); })(),new cljs.core.Keyword(null,"ch","ch",1013907415),0], null),new cljs.core.Keyword(null,"to","to",1013907949),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"line","line",1017226086),to_line,new cljs.core.Keyword(null,"ch","ch",1013907415),((cljs.core._EQ_.call(null,to_line,max_line))?ch:0)], null)], null); }); -lt.plugins.tern.ed__GT_partfile = (function ed__GT_partfile(editor){var map__9641 = lt.plugins.tern.partial_range.call(null,editor);var map__9641__$1 = ((cljs.core.seq_QMARK_.call(null,map__9641))?cljs.core.apply.call(null,cljs.core.hash_map,map__9641):map__9641);var to = cljs.core.get.call(null,map__9641__$1,new cljs.core.Keyword(null,"to","to",1013907949));var from = cljs.core.get.call(null,map__9641__$1,new cljs.core.Keyword(null,"from","from",1017056028));var offset_line = (function (){var x__6678__auto__ = 0;var y__6679__auto__ = new cljs.core.Keyword(null,"line","line",1017226086).cljs$core$IFn$_invoke$arity$1(from);return ((x__6678__auto__ > y__6679__auto__) ? x__6678__auto__ : y__6679__auto__); +lt.plugins.tern.ed__GT_partfile = (function ed__GT_partfile(editor){var map__7880 = lt.plugins.tern.partial_range.call(null,editor);var map__7880__$1 = ((cljs.core.seq_QMARK_.call(null,map__7880))?cljs.core.apply.call(null,cljs.core.hash_map,map__7880):map__7880);var to = cljs.core.get.call(null,map__7880__$1,new cljs.core.Keyword(null,"to","to",1013907949));var from = cljs.core.get.call(null,map__7880__$1,new cljs.core.Keyword(null,"from","from",1017056028));var offset_line = (function (){var x__6678__auto__ = 0;var y__6679__auto__ = new cljs.core.Keyword(null,"line","line",1017226086).cljs$core$IFn$_invoke$arity$1(from);return ((x__6678__auto__ > y__6679__auto__) ? x__6678__auto__ : y__6679__auto__); })();return new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"name","name",1017277949),lt.plugins.tern.ed__GT_path.call(null,editor),new cljs.core.Keyword(null,"offsetLines","offsetLines",2272186782),offset_line,new cljs.core.Keyword(null,"text","text",1017460895),lt.objs.editor.range.call(null,editor,from,to),new cljs.core.Keyword(null,"type","type",1017479852),"part"], null); }); +lt.plugins.tern.ed__GT_fullfile = (function ed__GT_fullfile(editor){return new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"name","name",1017277949),lt.plugins.tern.ed__GT_path.call(null,editor),new cljs.core.Keyword(null,"text","text",1017460895),lt.objs.editor.__GT_val.call(null,editor),new cljs.core.Keyword(null,"type","type",1017479852),"full"], null); +}); lt.plugins.tern.ed__GT_mime = (function ed__GT_mime(editor){return cljs.core.get_in.call(null,cljs.core.deref.call(null,editor),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"info","info",1017141280),new cljs.core.Keyword(null,"mime","mime",1017255846)], null)); }); lt.plugins.tern.ed__GT_line_count = (function ed__GT_line_count(editor){return lt.objs.editor.line_count.call(null,lt.objs.editor.__GT_cm_ed.call(null,editor)); @@ -351,9 +358,9 @@ var ed__GT_req = null; var ed__GT_req__2 = (function (editor,type){return ed__GT_req.call(null,editor,type,cljs.core.PersistentArrayMap.EMPTY); }); var ed__GT_req__3 = (function (editor,type,query_ops){var req = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"query","query",1121848378),lt.plugins.tern.ed__GT_query.call(null,editor,type,query_ops),new cljs.core.Keyword(null,"files","files",1111338473),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [(((lt.plugins.tern.ed__GT_line_count.call(null,editor) > 250))?lt.plugins.tern.ed__GT_partfile.call(null,editor):lt.plugins.tern.ed__GT_fullfile.call(null,editor))], null)], null);var temp__4090__auto__ = new cljs.core.Keyword(null,"offsetLines","offsetLines",2272186782).cljs$core$IFn$_invoke$arity$1(cljs.core.first.call(null,new cljs.core.Keyword(null,"files","files",1111338473).cljs$core$IFn$_invoke$arity$1(req)));if(cljs.core.truth_(temp__4090__auto__)) -{var offset = temp__4090__auto__;return lt.plugins.tern.tern_msg.call(null,new cljs.core.Keyword(null,"request","request",2109597185),cljs.core.assoc_in.call(null,cljs.core.update_in.call(null,req,new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"query","query",1121848378),new cljs.core.Keyword(null,"end","end",1014004813),new cljs.core.Keyword(null,"line","line",1017226086)], null),cljs.core._,offset),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"query","query",1121848378),new cljs.core.Keyword(null,"file","file",1017047278)], null),"#0")); +{var offset = temp__4090__auto__;return cljs.core.assoc_in.call(null,cljs.core.update_in.call(null,req,new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"query","query",1121848378),new cljs.core.Keyword(null,"end","end",1014004813),new cljs.core.Keyword(null,"line","line",1017226086)], null),cljs.core._,offset),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"query","query",1121848378),new cljs.core.Keyword(null,"file","file",1017047278)], null),"#0"); } else -{return lt.plugins.tern.tern_msg.call(null,new cljs.core.Keyword(null,"request","request",2109597185),req); +{return req; } }); ed__GT_req = function(editor,type,query_ops){ @@ -420,7 +427,7 @@ lt.plugins.tern.node_exe = (function node_exe(){if(cljs.core.truth_(lt.objs.plat }); lt.plugins.tern.__BEH__send = (function __BEH__send(this$,msg){return new cljs.core.Keyword("lt.plugins.tern","worker","lt.plugins.tern/worker",3141178359).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,this$)).send(cljs.core.clj__GT_js.call(null,msg)); }); -lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","send","lt.plugins.tern/send",4301526977),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.tern.__BEH__send,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"send!","send!",1123226891),null], null), null)); +lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","send","lt.plugins.tern/send",4301526977),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.tern.__BEH__send,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"send!","send!",1123226891),null], null), null),new cljs.core.Keyword(null,"doc","doc",1014003882),"Accepts a lt object 'this' and any type 'message'.\n\n Sends the message to the tern worker associated with current object\n as a plain old javascript object."); lt.plugins.tern.__BEH__start_server = (function __BEH__start_server(this$){if(cljs.core.truth_((function (){var and__6359__auto__ = cljs.core.not.call(null,new cljs.core.Keyword(null,"connecting","connecting",4533219882).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,this$)));if(and__6359__auto__) {return lt.plugins.tern.check_server_path.call(null); } else @@ -501,9 +508,9 @@ return lt.object.merge_BANG_.call(null,this$,new cljs.core.PersistentArrayMap(nu } }); lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","kill","lt.plugins.tern/kill",4329208983),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.tern.__BEH__kill,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"kill","kill",1017196240),null], null), null)); -lt.plugins.tern.__BEH__disconnect = (function __BEH__disconnect(this$){var temp__4092__auto___9677 = new cljs.core.Keyword("lt.plugins.tern","worker","lt.plugins.tern/worker",3141178359).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,this$));if(cljs.core.truth_(temp__4092__auto___9677)) -{var worker_9678 = temp__4092__auto___9677;if(cljs.core.truth_(worker_9678.connected)) -{worker_9678.disconnect(); +lt.plugins.tern.__BEH__disconnect = (function __BEH__disconnect(this$){var temp__4092__auto___7926 = new cljs.core.Keyword("lt.plugins.tern","worker","lt.plugins.tern/worker",3141178359).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,this$));if(cljs.core.truth_(temp__4092__auto___7926)) +{var worker_7927 = temp__4092__auto___7926;if(cljs.core.truth_(worker_7927.connected)) +{worker_7927.disconnect(); } else {} } else @@ -529,8 +536,14 @@ lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","refr lt.plugins.tern.__BEH__on_app_shutdown = (function __BEH__on_app_shutdown(_){return lt.objs.sidebar.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"tern.reset","tern.reset",3202251776)); }); lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","on-app-shutdown","lt.plugins.tern/on-app-shutdown",2899772969),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.tern.__BEH__on_app_shutdown,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"close!","close!",3951350939),null], null), null)); -lt.object.object_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","tern.client","lt.plugins.tern/tern.client",3665262821),new cljs.core.Keyword(null,"tags","tags",1017456523),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"tern.client","tern.client",4004897758),null,new cljs.core.Keyword(null,"client","client",3951159101),null], null), null),new cljs.core.Keyword(null,"name","name",1017277949),"Tern Javascript Server",new cljs.core.Keyword(null,"queue","queue",1121848451),cljs.core.PersistentVector.EMPTY); -lt.plugins.tern.tern_client = lt.object.create.call(null,new cljs.core.Keyword("lt.plugins.tern","tern.client","lt.plugins.tern/tern.client",3665262821)); +lt.object.object_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","tern.client","lt.plugins.tern/tern.client",3665262821),new cljs.core.Keyword(null,"tags","tags",1017456523),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"tern.client","tern.client",4004897758),null,new cljs.core.Keyword(null,"client","client",3951159101),null], null), null),new cljs.core.Keyword(null,"name","name",1017277949),"Tern Javascript Server",new cljs.core.Keyword(null,"connecting","connecting",4533219882),false,new cljs.core.Keyword(null,"connected","connected",4729661051),false,new cljs.core.Keyword(null,"config","config",3954079412),null,new cljs.core.Keyword("lt.plugins.tern","worker","lt.plugins.tern/worker",3141178359),null,new cljs.core.Keyword(null,"queue","queue",1121848451),cljs.core.PersistentVector.EMPTY); +lt.plugins.tern.tern_client_factory = (function tern_client_factory(){var temp__4090__auto__ = cljs.core.first.call(null,lt.object.by_tag.call(null,new cljs.core.Keyword(null,"tern.client","tern.client",4004897758)));if(cljs.core.truth_(temp__4090__auto__)) +{var obj = temp__4090__auto__;return obj; +} else +{return lt.object.create.call(null,new cljs.core.Keyword("lt.plugins.tern","tern.client","lt.plugins.tern/tern.client",3665262821)); +} +}); +lt.plugins.tern.tern_client = lt.plugins.tern.tern_client_factory.call(null); lt.objs.sidebar.command.command.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"tern.send-current-document","tern.send-current-document",4050773829),new cljs.core.Keyword(null,"desc","desc",1016984067),"Tern: Send current document to server",new cljs.core.Keyword(null,"hidden","hidden",4091384092),true,new cljs.core.Keyword(null,"exec","exec",1017031683),(function (){var editor = lt.objs.editor.pool.last_active.call(null);if((cljs.core._EQ_.call(null,lt.plugins.tern.ed__GT_mime.call(null,editor),cljs.core.deref.call(null,lt.plugins.tern.js_mime))) && (cljs.core.not.call(null,new cljs.core.Keyword(null,"active","active",3885920888).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,lt.plugins.auto_complete.hinter))))) {return lt.objs.clients.send.call(null,lt.plugins.tern.tern_client,new cljs.core.Keyword(null,"ignore","ignore",4118475076),lt.plugins.tern.tern_msg.call(null,new cljs.core.Keyword(null,"request","request",2109597185),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"files","files",1111338473),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [lt.plugins.tern.ed__GT_fullfile.call(null,editor)], null)], null))); } else @@ -543,51 +556,51 @@ lt.objs.sidebar.command.command.call(null,new cljs.core.PersistentArrayMap(null, * @param {...*} var_args */ lt.plugins.tern.__BEH__libs = (function() { -var __BEH__libs__delegate = function (this$,libs){var seq__9646 = cljs.core.seq.call(null,libs);var chunk__9647 = null;var count__9648 = 0;var i__9649 = 0;while(true){ -if((i__9649 < count__9648)) -{var lib = cljs.core._nth.call(null,chunk__9647,i__9649);var path_9679 = (cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,cljs.core.name.call(null,lib)))?lib:lt.objs.files.join.call(null,lt.plugins.tern.tern_lib_dir,[cljs.core.str(lt.objs.files.basename.call(null,cljs.core.name.call(null,lib))),cljs.core.str(".json")].join('')));if(cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,path_9679))) -{lt.object.update_BANG_.call(null,this$,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"options","options",4059396624),new cljs.core.Keyword(null,"libs","libs",1017225728)], null),cljs.core.conj,path_9679); +var __BEH__libs__delegate = function (this$,libs){var seq__7885 = cljs.core.seq.call(null,libs);var chunk__7886 = null;var count__7887 = 0;var i__7888 = 0;while(true){ +if((i__7888 < count__7887)) +{var lib = cljs.core._nth.call(null,chunk__7886,i__7888);var path_7928 = (cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,cljs.core.name.call(null,lib)))?lib:lt.objs.files.join.call(null,lt.plugins.tern.tern_lib_dir,[cljs.core.str(lt.objs.files.basename.call(null,cljs.core.name.call(null,lib))),cljs.core.str(".json")].join('')));if(cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,path_7928))) +{lt.object.update_BANG_.call(null,this$,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"options","options",4059396624),new cljs.core.Keyword(null,"libs","libs",1017225728)], null),cljs.core.conj,path_7928); } else {} { -var G__9680 = seq__9646; -var G__9681 = chunk__9647; -var G__9682 = count__9648; -var G__9683 = (i__9649 + 1); -seq__9646 = G__9680; -chunk__9647 = G__9681; -count__9648 = G__9682; -i__9649 = G__9683; +var G__7929 = seq__7885; +var G__7930 = chunk__7886; +var G__7931 = count__7887; +var G__7932 = (i__7888 + 1); +seq__7885 = G__7929; +chunk__7886 = G__7930; +count__7887 = G__7931; +i__7888 = G__7932; continue; } } else -{var temp__4092__auto__ = cljs.core.seq.call(null,seq__9646);if(temp__4092__auto__) -{var seq__9646__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__9646__$1)) -{var c__7119__auto__ = cljs.core.chunk_first.call(null,seq__9646__$1);{ -var G__9684 = cljs.core.chunk_rest.call(null,seq__9646__$1); -var G__9685 = c__7119__auto__; -var G__9686 = cljs.core.count.call(null,c__7119__auto__); -var G__9687 = 0; -seq__9646 = G__9684; -chunk__9647 = G__9685; -count__9648 = G__9686; -i__9649 = G__9687; +{var temp__4092__auto__ = cljs.core.seq.call(null,seq__7885);if(temp__4092__auto__) +{var seq__7885__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__7885__$1)) +{var c__7119__auto__ = cljs.core.chunk_first.call(null,seq__7885__$1);{ +var G__7933 = cljs.core.chunk_rest.call(null,seq__7885__$1); +var G__7934 = c__7119__auto__; +var G__7935 = cljs.core.count.call(null,c__7119__auto__); +var G__7936 = 0; +seq__7885 = G__7933; +chunk__7886 = G__7934; +count__7887 = G__7935; +i__7888 = G__7936; continue; } } else -{var lib = cljs.core.first.call(null,seq__9646__$1);var path_9688 = (cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,cljs.core.name.call(null,lib)))?lib:lt.objs.files.join.call(null,lt.plugins.tern.tern_lib_dir,[cljs.core.str(lt.objs.files.basename.call(null,cljs.core.name.call(null,lib))),cljs.core.str(".json")].join('')));if(cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,path_9688))) -{lt.object.update_BANG_.call(null,this$,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"options","options",4059396624),new cljs.core.Keyword(null,"libs","libs",1017225728)], null),cljs.core.conj,path_9688); +{var lib = cljs.core.first.call(null,seq__7885__$1);var path_7937 = (cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,cljs.core.name.call(null,lib)))?lib:lt.objs.files.join.call(null,lt.plugins.tern.tern_lib_dir,[cljs.core.str(lt.objs.files.basename.call(null,cljs.core.name.call(null,lib))),cljs.core.str(".json")].join('')));if(cljs.core.truth_(lt.objs.files.file_QMARK_.call(null,path_7937))) +{lt.object.update_BANG_.call(null,this$,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"options","options",4059396624),new cljs.core.Keyword(null,"libs","libs",1017225728)], null),cljs.core.conj,path_7937); } else {} { -var G__9689 = cljs.core.next.call(null,seq__9646__$1); -var G__9690 = null; -var G__9691 = 0; -var G__9692 = 0; -seq__9646 = G__9689; -chunk__9647 = G__9690; -count__9648 = G__9691; -i__9649 = G__9692; +var G__7938 = cljs.core.next.call(null,seq__7885__$1); +var G__7939 = null; +var G__7940 = 0; +var G__7941 = 0; +seq__7885 = G__7938; +chunk__7886 = G__7939; +count__7887 = G__7940; +i__7888 = G__7941; continue; } } @@ -603,9 +616,9 @@ var libs = null;if (arguments.length > 1) { libs = cljs.core.array_seq(Array.prototype.slice.call(arguments, 1),0);} return __BEH__libs__delegate.call(this,this$,libs);}; __BEH__libs.cljs$lang$maxFixedArity = 1; -__BEH__libs.cljs$lang$applyTo = (function (arglist__9693){ -var this$ = cljs.core.first(arglist__9693); -var libs = cljs.core.rest(arglist__9693); +__BEH__libs.cljs$lang$applyTo = (function (arglist__7942){ +var this$ = cljs.core.first(arglist__7942); +var libs = cljs.core.rest(arglist__7942); return __BEH__libs__delegate(this$,libs); }); __BEH__libs.cljs$core$IFn$_invoke$arity$variadic = __BEH__libs__delegate; @@ -633,11 +646,11 @@ var opts = null;if (arguments.length > 2) { opts = cljs.core.array_seq(Array.prototype.slice.call(arguments, 2),0);} return __BEH__plugin__delegate.call(this,this$,plugin,opts);}; __BEH__plugin.cljs$lang$maxFixedArity = 2; -__BEH__plugin.cljs$lang$applyTo = (function (arglist__9694){ -var this$ = cljs.core.first(arglist__9694); -arglist__9694 = cljs.core.next(arglist__9694); -var plugin = cljs.core.first(arglist__9694); -var opts = cljs.core.rest(arglist__9694); +__BEH__plugin.cljs$lang$applyTo = (function (arglist__7943){ +var this$ = cljs.core.first(arglist__7943); +arglist__7943 = cljs.core.next(arglist__7943); +var plugin = cljs.core.first(arglist__7943); +var opts = cljs.core.rest(arglist__7943); return __BEH__plugin__delegate(this$,plugin,opts); }); __BEH__plugin.cljs$core$IFn$_invoke$arity$variadic = __BEH__plugin__delegate; @@ -697,14 +710,14 @@ lt.plugins.tern.extract_hints = (function extract_hints(editor){var hints = new {return null; } }); -lt.plugins.tern.__BEH__trigger_update_hints = (function __BEH__trigger_update_hints(editor){var req = lt.plugins.tern.ed__GT_req.call(null,editor,new cljs.core.Keyword(null,"completions","completions",1416465289));var cb = ((function (req){ +lt.plugins.tern.__BEH__trigger_update_hints = (function __BEH__trigger_update_hints(editor){var req = lt.plugins.tern.tern_msg.call(null,new cljs.core.Keyword(null,"request","request",2109597185),lt.plugins.tern.ed__GT_req.call(null,editor,new cljs.core.Keyword(null,"completions","completions",1416465289)));var cb = ((function (req){ return (function (_,data){return lt.object.raise.call(null,editor,new cljs.core.Keyword(null,"editor.javascript.hints.result","editor.javascript.hints.result",1109152337),data); });})(req)) ;return lt.objs.clients.send.call(null,lt.plugins.tern.tern_client,new cljs.core.Keyword(null,"request","request",2109597185),req,new cljs.core.Keyword(null,"only","only",1017320222),cb); }); lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","trigger-update-hints","lt.plugins.tern/trigger-update-hints",2763925304),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.tern.__BEH__trigger_update_hints,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"editor.javascript.hints.update!","editor.javascript.hints.update!",2634618216),null], null), null)); lt.plugins.tern.__BEH__finish_update_hints = (function __BEH__finish_update_hints(editor,res){if(cljs.core.truth_(res)) -{lt.object.merge_BANG_.call(null,editor,cljs.core.PersistentHashMap.fromArrays.call(null,[new cljs.core.Keyword("lt.plugins.tern","hints","lt.plugins.tern/hints",4426265349)],[cljs.core.map.call(null,(function (p1__9650_SHARP_){return {"completion": p1__9650_SHARP_}; +{lt.object.merge_BANG_.call(null,editor,cljs.core.PersistentHashMap.fromArrays.call(null,[new cljs.core.Keyword("lt.plugins.tern","hints","lt.plugins.tern/hints",4426265349)],[cljs.core.map.call(null,(function (p1__7889_SHARP_){return {"completion": p1__7889_SHARP_}; }),res.completions)])); return lt.object.raise.call(null,lt.plugins.auto_complete.hinter,new cljs.core.Keyword(null,"refresh!","refresh!",4597922840)); } else @@ -754,7 +767,7 @@ lt.plugins.tern.format_doc = (function format_doc(s){if(cljs.core.truth_(s)) lt.plugins.tern.__BEH__javascript_format_doc = (function __BEH__javascript_format_doc(editor,m){return cljs.core.update_in.call(null,m,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"doc","doc",1014003882)], null),lt.plugins.tern.format_doc); }); lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.tern","javascript-format-doc","lt.plugins.tern/javascript-format-doc",2583476987),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.tern.__BEH__javascript_format_doc,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"format+","format+",4631427718),null], null), null),new cljs.core.Keyword(null,"exclusive","exclusive",2700522000),true); -lt.plugins.tern.__BEH__javascript_doc = (function __BEH__javascript_doc(editor){var req = lt.plugins.tern.ed__GT_req.call(null,editor,new cljs.core.Keyword(null,"type","type",1017479852),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"docs","docs",1016993197),true,new cljs.core.Keyword(null,"types","types",1124748267),true], null));var loc = lt.objs.editor.__GT_cursor.call(null,editor);var cb = ((function (req,loc){ +lt.plugins.tern.__BEH__javascript_doc = (function __BEH__javascript_doc(editor){var req = lt.plugins.tern.tern_msg.call(null,new cljs.core.Keyword(null,"request","request",2109597185),lt.plugins.tern.ed__GT_req.call(null,editor,new cljs.core.Keyword(null,"type","type",1017479852),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"docs","docs",1016993197),true,new cljs.core.Keyword(null,"types","types",1124748267),true], null)));var loc = lt.objs.editor.__GT_cursor.call(null,editor);var cb = ((function (req,loc){ return (function (_,result){var doc = cljs.core.merge.call(null,lt.object.raise_reduce.call(null,editor,new cljs.core.Keyword(null,"format+","format+",4631427718),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"doc","doc",1014003882),result.doc,new cljs.core.Keyword(null,"args","args",1016906831),((cljs.core.not_EQ_.call(null,result.name,result.type))?result.type:null),new cljs.core.Keyword(null,"name","name",1017277949),result.name], null)),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"loc","loc",1014011570),loc,new cljs.core.Keyword(null,"file","file",1017047278),result.origin], null));return lt.object.raise.call(null,editor,new cljs.core.Keyword(null,"editor.javascript.doc","editor.javascript.doc",1489701706),doc); });})(req,loc)) ;return lt.objs.clients.send.call(null,lt.plugins.tern.tern_client,new cljs.core.Keyword(null,"request","request",2109597185),req,new cljs.core.Keyword(null,"only","only",1017320222),cb); @@ -774,7 +787,7 @@ lt.plugins.tern.requirejs_fix = (function requirejs_fix(f){if((cljs.core.not.cal {return f; } }); -lt.plugins.tern.__BEH__jump_to_definition = (function __BEH__jump_to_definition(editor){var req = lt.plugins.tern.ed__GT_req.call(null,editor,new cljs.core.Keyword(null,"definition","definition",4294453445),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"lineCharPositions","lineCharPositions",515471762),true], null));var cb = ((function (req){ +lt.plugins.tern.__BEH__jump_to_definition = (function __BEH__jump_to_definition(editor){var req = lt.plugins.tern.tern_msg.call(null,new cljs.core.Keyword(null,"request","request",2109597185),lt.plugins.tern.ed__GT_req.call(null,editor,new cljs.core.Keyword(null,"definition","definition",4294453445),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"lineCharPositions","lineCharPositions",515471762),true], null)));var cb = ((function (req){ return (function (_,data){return lt.object.raise.call(null,lt.objs.jump_stack.jump_stack,new cljs.core.Keyword(null,"jump-stack.push!","jump-stack.push!",4063822260),editor,lt.plugins.tern.requirejs_fix.call(null,data.file),data.start); });})(req)) ;return lt.objs.clients.send.call(null,lt.plugins.tern.tern_client,new cljs.core.Keyword(null,"request","request",2109597185),req,new cljs.core.Keyword(null,"only","only",1017320222),cb); diff --git a/ternjs_compiled.js.map b/ternjs_compiled.js.map index 34a9546..1e545ea 100644 --- a/ternjs_compiled.js.map +++ b/ternjs_compiled.js.map @@ -1,11 +1,9 @@ {"version":3, - "file": - "C:\\Users\\lionel.zuber\\AppData\\Local\\LightTable\\plugins\\TernJS/compiled.map", - "sources": - ["C:\\Users\\lionel.zuber\\AppData\\Local\\LightTable\\plugins\\TernJS/src\\lt\\plugins\\tern.cljs"], - "lineCount":783, + "file":"D:\\Workspace\\LT-TernJS/compiled.map", + "sources":["D:\\Workspace\\LT-TernJS/src\\lt\\plugins\\tern.cljs"], + "lineCount":796, "mappings": - ";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,AAAKA,6BAAW,iBAAAC,4DAAA,AAAA,oBAAAA,3DAAaE;CAAb,UAAAF,mBAAA,zBAASC,yBACPA;;CACA,qEAAA,9DAACE,6BAAWC;;;AAC9B,AAAKC,2BAAS,wDAAA,eAAA,vEAACF,6BAAWJ;AAC1B,AAAKO,+BAAa,sDAAA,tDAACH,6BAAWE;AAC9B,AAAKE,kCAAgB,sDAAA,tDAACJ,6BAAWE;AACjC,AAAKG,kCAAgB,wDAAA,OAAA,/DAACL,6BAAWJ;AACjC,AAAKU,0BAAQ,KAAAC,gBAAA,AAAAC,yBAAA,2CAAA,qDAAA,MAAA,uDAAA,cAAA,aAAA,AAAO,OAAA,gMAAI,AAAAC,0BAACC,vIAAuB,wBAAA,AAAA,yIAAA,jKAACC;;AACjD,yBAAA,zBAAKC;AAML,AAAKC,qBAAG,QAAA,RAACC;AAET,0BAAA,0BAAA,pDAAMC,4CAASjB,IAAIkB,IACjB,OAACC,qCAAWnB,IAAIkB;;AAElB,uBAAA,wBAAA,/CAAME,sCAAMC,KAAKH,IACf,OAACI,kCAAQD,KAAKH;;AAEhB,gCAAA,2BAAA,3DAAMK,wDAASC,GACb,gCAAA,zBAACC,gCAAS,AAACC,iCAAeF;;AAE5B,gCAAA,2BAAA,3DAAMG,wDAASH,GACb,gCAAA,zBAACC,gCAAS,AAACC,iCAAeF;;AAE5B,uCAAA,kCAAA,zEAAMI,sEAAgBJ,GACpB,gCAAA,zBAACC,wCAAiB,AAACC,iCAAeF;;AAEpC,gCAAA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AEoC,MACL,+DAAA,xDAAClD,0BAAa8E,2GAEAzL,OACA,AAACuL,wCAAc,AAAQ1B,WACvB,AAASA;;CANlC,AAOE,kEAAA,+DAAA,1HAACxB,+BAAaJ,uFAAqB5D,yDAAUlJ;;AAVrE,AAAA2K,mCAAA,8GAAA,6DAAA0F,0CAAA,6DAAA,iFAAA", "names": ["lt.plugins.tern/plugin-dir", "temp__4090__auto__", "dir", "lt.objs.plugins/*plugin-dir*", "lt.objs.files/join", @@ -28,12 +26,12 @@ "ignore?", "done", "cljs.core/-add-method", "results", "error", "handle-error", "e", "cljs.core/reset!", "recur-cb", "pending", "r", "cljs.core/swap!", "cljs.core/concat", "cljs.core/dec", "stat-cb", - "stats", "cljs.core/conj", "paths", "seq__9613", "cljs.core/seq", - "chunk__9615", "count__9616", "i__9617", "cljs.core/-nth", + "stats", "cljs.core/conj", "paths", "seq__7852", "cljs.core/seq", + "chunk__7854", "count__7855", "i__7856", "cljs.core/-nth", "temp__4092__auto__", "cljs.core/chunked-seq?", "c__7119__auto__", "cljs.core/chunk-first", "cljs.core/chunk-rest", "cljs.core/count", - "cljs.core/first", "cljs.core/next", "x", "dirs", "seq__9619", - "chunk__9620", "count__9621", "i__9622", + "cljs.core/first", "cljs.core/next", "x", "dirs", "seq__7858", + "chunk__7859", "count__7860", "i__7861", "lt.plugins.tern/tern-ignore", "lt.plugins.tern/current-ws-jsfiles", "ws", "lt.objs.workspace/current-ws", "ds", "fs", "cljs.core/filter", "cljs.core/empty?", "lt.plugins.tern/dir->jsfiles", @@ -41,22 +39,22 @@ "lt.plugins.tern/ed->path", "editor", "or__6371__auto__", "cljs.core/get-in", "lt.plugins.tern/ed->query", "type", "ed->query", "query-ops", "cljs.core/merge", "lt.objs.editor/->cursor", - "lt.plugins.tern/ed->fullfile", "lt.objs.editor/->val", - "lt.plugins.tern/indent", "s", "p1__9623#", "cljs.core/map", - "cljs.core/take-while", "cljs.core/comp", "cljs.core/true?", + "lt.plugins.tern/indent", "s", "p1__7862#", "cljs.core/map", + "cljs.core/take-while", "cljs.core/identity", "lt.plugins.tern/jsfn?", "lt.plugins.tern/back-search", "strs", - "max-indent", "p__9633", "map__9635", "cljs.core/seq?", + "max-indent", "p__7872", "map__7874", "cljs.core/seq?", "cljs.core/apply", "cljs.core/hash-map", "i", "v", "jsfn?", "indent", "cljs.core/map-indexed", "line-info", "match?", "lt.plugins.tern/forward-search", "cljs.core/drop", - "lt.plugins.tern/partial-range", "map__9638", "vec__9639", + "lt.plugins.tern/partial-range", "map__7877", "vec__7878", "cljs.core/nth", "line", "ch", "min-line", "x__6678__auto__", "y__6679__auto__", "max-line", "x__6685__auto__", "y__6686__auto__", "lt.objs.editor/->cm-ed", "text", "lt.objs.editor/range", "b", "f", - "cljs.core/partition-all", "back-result", "cljs.core/reverse", - "back-index", "forward-index", "to-line", - "lt.plugins.tern/ed->partfile", "map__9641", "from", "to", - "offset-line", "lt.plugins.tern/ed->mime", + "cljs.core/partition-all", "current-indent", "back-result", + "cljs.core/reverse", "back-index", "forward-index", "to-line", + "lt.plugins.tern/ed->partfile", "map__7880", "from", "to", + "offset-line", "lt.plugins.tern/ed->fullfile", + "lt.objs.editor/->val", "lt.plugins.tern/ed->mime", "lt.plugins.tern/ed->line-count", "lt.objs.editor/line-count", "lt.plugins.tern/ed->req", "ed->req", "req", "offset", "cljs.core/update-in", "cljs.core/-", "cljs.core/assoc-in", @@ -82,10 +80,11 @@ "lt.plugins.tern/__BEH__refresh", "lt.plugins.tern/__BEH__on-app-shutdown", "lt.objs.sidebar.command/exec!", "lt.object/object*", + "lt.plugins.tern/tern-client-factory", "obj", "lt.object/by-tag", "lt.plugins.tern/tern-client", "lt.objs.sidebar.command/command", "lt.objs.editor.pool/last-active", "lt.plugins.auto-complete/hinter", "lt.objs.clients/send", "lt.plugins.tern/__BEH__libs", "libs", - "seq__9646", "chunk__9647", "count__9648", "i__9649", "lib", + "seq__7885", "chunk__7886", "count__7887", "i__7888", "lib", "lt.objs.files/file?", "lt.object/update!", "lt.plugins.tern/__BEH__plugin", "plugin", "opts", "value", "lt.plugins.tern/__BEH__lazy-loading", @@ -95,7 +94,7 @@ "lt.plugins.tern/__BEH__reset-on-update", "lt.plugins.tern/extract-hints", "hints", "lt.plugins.tern/__BEH__trigger-update-hints", "data", - "lt.plugins.tern/__BEH__finish-update-hints", "res", "p1__9650#", + "lt.plugins.tern/__BEH__finish-update-hints", "res", "p1__7889#", "cljs/core.PersistentHashMap.fromArrays", "lt.plugins.tern/__BEH__use-tern-hints", "token", "cljs.core/not=", "lt.plugins.tern/__BEH__line-change", "change", "cljs.core/last",