From 4d4d288214a5c0ddec61a7f9243210f191b7a034 Mon Sep 17 00:00:00 2001 From: XeroOl Date: Sat, 15 Mar 2025 12:37:25 -0500 Subject: [PATCH] suppress "unknown field" for generated symbols --- src/fennel-ls/lint.fnl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fennel-ls/lint.fnl b/src/fennel-ls/lint.fnl index 7f04af4..c5db9ad 100644 --- a/src/fennel-ls/lint.fnl +++ b/src/fennel-ls/lint.fnl @@ -62,6 +62,7 @@ the `file.diagnostics` field, filling it with diagnostics." (let [opts {} item (analyzer.search-ast server file ?ast stack opts)] (if (and (not item) + (file.lexical symbol) (not (in-or? file.calls symbol)) ;; this doesn't necessarily have to come thru require; it works ;; for built-in modules too