cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
579 stars 7 forks source link

Parinfer broken cases #2945

Open cursive-ide opened 1 month ago

cursive-ide commented 1 month ago

This issue serves to capture various parinfer cases which don't work well:

  output_tokens (do
                  (print (str "<output:" output_tokens ">"))
                  (flush))

Here, if the caret is right before output_tokens and that symbol is wrapped in parens, the indentation breaks.

cursive-ide commented 1 month ago

Also:

        (.offer queue {:type :content
                       :text text
                       :role role}))

Similarly, wrapping queue in parens breaks.