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 2
2
3
3
## Unreleased
4
4
5
+ - Fix --settings flag
6
+
5
7
## 1.4.21
6
8
7
9
## 1.4.20
Original file line number Diff line number Diff line change 20
20
(defn args
21
21
[command-and-options project-settings]
22
22
(cond
23
- (and (not-empty project-settings) (has-settings? command-and-options))
23
+ (and (not-empty project-settings)
24
+ (has-settings? command-and-options))
24
25
(args-with-merged-settings command-and-options project-settings)
25
26
26
27
(not-empty project-settings)
27
- (concat command-and-options [" --settings" (str project-settings)])
28
+ (concat command-and-options [" --settings" (str ( :settings project-settings) )])
28
29
29
30
:else
30
31
command-and-options))
Original file line number Diff line number Diff line change 1
1
(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]))
4
5
5
6
(deftest args-test
6
7
(testing " Should return the arguments when project settings is an empty map"
13
14
14
15
(testing " Should return the arguments when there is project settings"
15
16
(is (= [" diagnostics" " --settings" " {:foo 1}" ]
16
- (clojure-lsp/args [" diagnostics" ] {:foo 1 }))))
17
+ (clojure-lsp/args [" diagnostics" ] {:settings { : foo 1 } }))))
17
18
18
19
(testing " Should return the arguments when there is settings options and also project settings"
19
20
(is (= [" diagnostics" " --settings" " {:foo 1, :bar \" Test\" }" ]
You can’t perform that action at this time.
0 commit comments