File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed
src/leiningen/clojure_lsp Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 70
70
(io/file (global-cache-dir ) " version.txt" ))
71
71
72
72
(defn ^:private run-lsp! [^File path args]
73
- (let [p (process/process {:cmd (concat [(.getAbsolutePath path)] args)})]
74
- (future
75
- (with-open [out-rdr ^BufferedReader (io/reader (:out p))]
76
- (loop []
77
- (when-let [line (.readLine out-rdr)]
78
- (println line)
79
- (recur )))))
80
- (future
81
- (with-open [out-rdr ^BufferedReader (io/reader (:err p))]
82
- (binding [*out* *err*]
83
- (loop []
84
- (when-let [line (.readLine out-rdr)]
85
- (println line)
86
- (recur ))))))
73
+ (let [p (process/process {:cmd (concat [(.getAbsolutePath path)] args)})
74
+ out-fut (future
75
+ (with-open [out-rdr ^BufferedReader (io/reader (:out p))]
76
+ (loop []
77
+ (when-let [line (.readLine out-rdr)]
78
+ (println line)
79
+ (flush )
80
+ (recur )))))
81
+ err-fut (future
82
+ (with-open [out-rdr ^BufferedReader (io/reader (:err p))]
83
+ (binding [*out* *err*]
84
+ (loop []
85
+ (when-let [line (.readLine out-rdr)]
86
+ (println line)
87
+ (flush )
88
+ (recur ))))))]
89
+ @out-fut
90
+ @err-fut
87
91
@p))
88
92
89
93
(defn ^:private download-server? [server-path server-version-path version]
You can’t perform that action at this time.
0 commit comments