File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - Fix --settings flag
6+
57## 1.4.21
68
79## 1.4.20
Original file line number Diff line number Diff line change 2020(defn args
2121 [command-and-options project-settings]
2222 (cond
23- (and (not-empty project-settings) (has-settings? command-and-options))
23+ (and (not-empty project-settings)
24+ (has-settings? command-and-options))
2425 (args-with-merged-settings command-and-options project-settings)
2526
2627 (not-empty project-settings)
27- (concat command-and-options [" --settings" (str project-settings)])
28+ (concat command-and-options [" --settings" (str ( :settings project-settings) )])
2829
2930 :else
3031 command-and-options))
Original file line number Diff line number Diff line change 11(ns leiningen.clojure-lsp-test
2- (:require [clojure.test :refer :all ]
3- [leiningen.clojure-lsp :as clojure-lsp]))
2+ (:require
3+ [clojure.test :refer :all ]
4+ [leiningen.clojure-lsp :as clojure-lsp]))
45
56(deftest args-test
67 (testing " Should return the arguments when project settings is an empty map"
1314
1415 (testing " Should return the arguments when there is project settings"
1516 (is (= [" diagnostics" " --settings" " {:foo 1}" ]
16- (clojure-lsp/args [" diagnostics" ] {:foo 1 }))))
17+ (clojure-lsp/args [" diagnostics" ] {:settings { : foo 1 } }))))
1718
1819 (testing " Should return the arguments when there is settings options and also project settings"
1920 (is (= [" diagnostics" " --settings" " {:foo 1, :bar \" Test\" }" ]
You can’t perform that action at this time.
0 commit comments