From cd0b63f07ba339231c55c0a02c410f9857507c60 Mon Sep 17 00:00:00 2001 From: "Josh (aider)" Date: Tue, 7 Jan 2025 12:01:50 -0600 Subject: [PATCH] fix: await publish_diagnostics in handle_did_open method --- crates/djls-server/src/documents.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/djls-server/src/documents.rs b/crates/djls-server/src/documents.rs index 94742c2..0086688 100644 --- a/crates/djls-server/src/documents.rs +++ b/crates/djls-server/src/documents.rs @@ -23,7 +23,7 @@ impl Store { } } - pub fn handle_did_open( + pub async fn handle_did_open( &mut self, params: DidOpenTextDocumentParams, client: &Client, @@ -37,7 +37,7 @@ impl Store { ); self.add_document(document); - self.publish_diagnostics(uri.as_str(), client); // Use the cloned URI + self.publish_diagnostics(uri.as_str(), client).await?; // Use the cloned URI Ok(()) }