Skip to content

Commit

Permalink
fixed crash when lsp server gets destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Apr 22, 2024
1 parent 3b1dc26 commit 6913461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text/language/lsp_client.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6913461

Please sign in to comment.