Skip to content

Commit 1891013

Browse files
committed
Bugfix: Typo, ":documnts" rather than ":documents" (missing the "e")
- Would have resulted in autocomplete suggestions failing to update as expected when diagnostics are push rather than pull (probably accounted for by diagnostics running elsewhere, but still wrong)
1 parent b09fc8d commit 1891013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.janet

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
message {:method "textDocument/publishDiagnostics"
9898
:params {:uri uri
9999
:diagnostics diagnostics}}]
100-
(put-in state [:documnts uri :eval-env] env)
100+
(put-in state [:documents uri :eval-env] env)
101101
(logging/message message [:diagnostics])
102102
[:ok state message :notify true])
103103
[:noresponse state])))
@@ -145,7 +145,7 @@
145145
(let [message {:method "textDocument/publishDiagnostics"
146146
:params {:uri uri
147147
:diagnostics diagnostics}}]
148-
(put-in state [:documnts uri :eval-env] env)
148+
(put-in state [:documents uri :eval-env] env)
149149
(logging/message message [:diagnostics])
150150
[:ok state message :notify true])
151151
[:noresponse state])))

0 commit comments

Comments
 (0)