Skip to content

Commit

Permalink
Bugfix: Typo, ":documnts" rather than ":documents" (missing the "e")
Browse files Browse the repository at this point in the history
- 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)
  • Loading branch information
CFiggers committed Dec 7, 2024
1 parent b09fc8d commit 1891013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.janet
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
message {:method "textDocument/publishDiagnostics"
:params {:uri uri
:diagnostics diagnostics}}]
(put-in state [:documnts uri :eval-env] env)
(put-in state [:documents uri :eval-env] env)
(logging/message message [:diagnostics])
[:ok state message :notify true])
[:noresponse state])))
Expand Down Expand Up @@ -145,7 +145,7 @@
(let [message {:method "textDocument/publishDiagnostics"
:params {:uri uri
:diagnostics diagnostics}}]
(put-in state [:documnts uri :eval-env] env)
(put-in state [:documents uri :eval-env] env)
(logging/message message [:diagnostics])
[:ok state message :notify true])
[:noresponse state])))
Expand Down

0 comments on commit 1891013

Please sign in to comment.