cursive
cursive copied to clipboard
Inlining a variable removes metadata from the following variable, if present
For example, when inlining dir in this snippet:
(let [dir (jio/file "/Users/colin")
^FileFilter ff (fn [f] true)]
(.listFiles dir ff))
It also removes comments, in this case preceding when inlining title:
(let [{:keys [display-name]} @state
startup-progress-promise (promise)
; We basically just start this task to get a progress indicator - this is a bit crap, but the
; proper fix requires migrating to Kotlin & coroutines
title (str "Starting " display-name)
startup-progress-task (task/backgroundable project title false
(fn [indicator]
(progress/indeterminate indicator true)
(let [settings (ClojureIdeSettings/getInstance)]
(deref startup-progress-promise (* (.replTimeout settings) 1000) nil))))]
(task/queue startup-progress-task)
(swap! state assoc :startup-progress-promise startup-progress-promise))