From 7da77e43bb27306087adab93f6d1c08f686fffc3 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Tue, 4 Nov 2025 21:31:08 +0100 Subject: Clear diagnostic was called way too late. --- src/server/check.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/check.odin b/src/server/check.odin index e4185c7..fed3a3f 100644 --- a/src/server/check.odin +++ b/src/server/check.odin @@ -156,6 +156,8 @@ check :: proc(paths: []string, uri: common.Uri, config: ^common.Config) { return } + clear_diagnostics(.Check) + if len(buffer) == 0 { continue } @@ -167,8 +169,6 @@ check :: proc(paths: []string, uri: common.Uri, config: ^common.Config) { log.errorf("Failed to unmarshal check results: %v, %v", res, string(buffer)) } - clear_diagnostics(.Check) - for error in json_errors.errors { if len(error.msgs) == 0 { break -- cgit v1.2.3