fix: remove semanticTokensProvider capability to prevent line out of range errors
The semantic tokens delta calculation had a bug where previous delta lines were used instead of absolute lines, causing cumulative errors that led to 'Invalid line: out of range' in Neovim's semantic token renderer. Since semantic tokens were already disabled (full=false, range=false) but Neovim still attempted to process them, remove the capability entirely so Neovim doesn't set up the semantic token decoration provider at all.
This commit is contained in:
@@ -67,11 +67,6 @@ local capabilities = {
|
|||||||
documentSymbolProvider = true,
|
documentSymbolProvider = true,
|
||||||
diagnosticProvider = { relatedDocuments = {} },
|
diagnosticProvider = { relatedDocuments = {} },
|
||||||
textDocumentSync = 1,
|
textDocumentSync = 1,
|
||||||
semanticTokensProvider = {
|
|
||||||
full = false, -- Disabled: was causing "Invalid line: out of range" errors
|
|
||||||
legend = { tokenTypes = semanticTokenTypes, tokenModifiers = semanticTokenModifiers },
|
|
||||||
range = false,
|
|
||||||
},
|
|
||||||
inlayHintProvider = { resolveProvider = false },
|
inlayHintProvider = { resolveProvider = false },
|
||||||
workspaceSymbolProvider = true,
|
workspaceSymbolProvider = true,
|
||||||
documentFormattingProvider = true,
|
documentFormattingProvider = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user