From 189101314fcfdf59d4bf50c9bf8a1cc053124cfd Mon Sep 17 00:00:00 2001 From: CFiggers <55862180+CFiggers@users.noreply.github.com> Date: Sat, 7 Dec 2024 09:52:07 -0600 Subject: [PATCH] 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) --- src/main.janet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.janet b/src/main.janet index 05f9a2f..2aeaae7 100644 --- a/src/main.janet +++ b/src/main.janet @@ -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]))) @@ -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])))