diff --git a/changelog.md b/changelog.md index 6cf4f8f..c060f0a 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ * Fix bug with renaming vars * Improve multival tracking +* `textEdit` field is present in completions ## 0.1.0 diff --git a/src/fennel-ls/state.fnl b/src/fennel-ls/state.fnl index cedbdee..5fdb8f5 100644 --- a/src/fennel-ls/state.fnl +++ b/src/fennel-ls/state.fnl @@ -110,7 +110,7 @@ However, fennel-ls can fall back to positionEncoding=utf-16 (with a performance (let [?position-encodings (?. init-params :capabilities :general :positionEncodings) utf8? (if (= (type ?position-encodings) :table) - (accumulate [utf-8? false + (accumulate [_utf-8? false _ encoding (ipairs ?position-encodings)] (or (= encoding :utf-8) (= encoding :utf8)))