We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
message
1 parent 899d588 commit cabb036Copy full SHA for cabb036
2 files changed
CHANGELOG.md
@@ -5,6 +5,7 @@
5
- Add a `:response-executor` option to control on which thread responses to
6
server-initiated requests are run, defaulting to Promesa's `:default`
7
executor, i.e. `ForkJoinPool/commonPool`.
8
+- Fix work done progress notification to allow nullable `message`.
9
10
## v1.10.0
11
src/lsp4clj/lsp/requests.clj
@@ -39,12 +39,12 @@
39
(= 0 percentage) {:kind :begin
40
:title message
41
:percentage 0}
42
- (= 100 percentage) {:kind :end
43
- :message message}
+ (= 100 percentage) (cond-> {:kind :end}
+ message (assoc :message message))
44
:else
45
(cond->
46
- {:kind :report
47
+ {:kind :report}
+ message (assoc :message message)
48
percentage (assoc :percentage percentage)))]
49
{:token progress-token
50
:value progress}))))
0 commit comments