From 96aef997288d97e97badf857dd75e572083d121b Mon Sep 17 00:00:00 2001 From: Michele Campeotto Date: Mon, 24 Mar 2025 08:55:39 +0100 Subject: [PATCH] Update compiler diagnostics to follow the spec. --- src/fennel-ls/compiler.fnl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fennel-ls/compiler.fnl b/src/fennel-ls/compiler.fnl index 1780a69..13fb0e9 100644 --- a/src/fennel-ls/compiler.fnl +++ b/src/fennel-ls/compiler.fnl @@ -305,8 +305,7 @@ identifiers are declared / referenced in which places." {:range range :message msg :severity message.severity.ERROR - :code 201 - :codeDescription "compiler error"})) + :code :compiler-error})) (if (attempt-to-recover! msg ast) true (do @@ -320,8 +319,7 @@ identifiers are declared / referenced in which places." {:range range :message msg :severity message.severity.ERROR - :code 101 - :codeDescription "parse error"})) + :code :parse-error})) (if (attempt-to-recover! msg) true (do