From 9f67b4828c9def9f0d9de19f2d08e09604322f98 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Thu, 19 Feb 2026 12:06:33 +0100 Subject: [PATCH] fix(lsp): disable semantic tokens to prevent errors The semantic tokens were causing 'Invalid line: out of range' errors when opening certain files. This appears to be related to the delta mode not being properly handled. Disabled semantic tokens for now to prevent the errors. --- src/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.lua b/src/main.lua index 6abdde9..9fb8ecf 100644 --- a/src/main.lua +++ b/src/main.lua @@ -65,9 +65,9 @@ local capabilities = { diagnosticProvider = { relatedDocuments = {} }, textDocumentSync = 1, semanticTokensProvider = { - full = { delta = true }, + full = false, -- Disabled: was causing "Invalid line: out of range" errors legend = { tokenTypes = semanticTokenTypes, tokenModifiers = semanticTokenModifiers }, - range = true, + range = false, }, inlayHintProvider = { resolveProvider = false }, workspaceSymbolProvider = true,