diff --git a/changelog.md b/changelog.md index 55b0c3e..b7bbd88 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,9 @@ ### Features * Code action "Expand macro" lets you see what a macro expands to * Macro expansion is shown when hovering over a macro +* Added support for pull diagnostics, which should help with out of date lints +* Completions can complete missing variable names in binding contexts + * For example, a completion of `hello-there` if the file contains `(local | 100) (print hello-there)` where `|` represents the cursor. * New lint `empty-let` for replacing `(let [] ...)` with `(do ...)` * New lint `duplicate-table-keys` for detecting duplicate keys (eg. `{:a 1 :a 2}`) * New lint `too-many-arguments` for function calls that provide extra, useless arguments diff --git a/src/fennel-ls/lint.fnl b/src/fennel-ls/lint.fnl index 00e982c..91e96be 100644 --- a/src/fennel-ls/lint.fnl +++ b/src/fennel-ls/lint.fnl @@ -537,7 +537,7 @@ You can read more about how to add lints in docs/linting.md" or by searching the word \"adjust\" in the [Lua Manual](https://www.lua.org/manual/5.4/manual.html#3.4.12)." :since "0.1.2" :type [:function-call :special-call] - :impl (fn [server file ast] + :impl (fn [_server _file ast] "generally, values and unpack are signs that the user is trying to do something with multiple values. However, multiple values will get \"adjusted\" to one value if they don't come at the end of the call."