From 6913461d2c559c284da661a6fa2374b8fc244ff8 Mon Sep 17 00:00:00 2001 From: Nimaoth Date: Mon, 22 Apr 2024 21:44:08 +0200 Subject: [PATCH] fixed crash when lsp server gets destroyed --- src/text/language/lsp_client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text/language/lsp_client.nim b/src/text/language/lsp_client.nim index 73369e40..0040a28b 100644 --- a/src/text/language/lsp_client.nim +++ b/src/text/language/lsp_client.nim @@ -120,7 +120,7 @@ proc parseResponse(client: LSPClient): Future[JsonNode] {.async.} = if client.connection.isNil: log(lvlError, "[parseResponse] Connection is nil") - return JsonNode(nil) + return newJNull() var success = true var lines = @[line]