From aaa9bd9f2b4472dd2d860f099ed3c98cf5db8942 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Tue, 16 Jun 2020 11:24:35 +0100 Subject: [PATCH] fix class list offsets (fixes hover ranges) --- src/lsp/util/find.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lsp/util/find.ts b/src/lsp/util/find.ts index 265fdc2..5eaef42 100644 --- a/src/lsp/util/find.ts +++ b/src/lsp/util/find.ts @@ -177,7 +177,7 @@ export function findClassListsInHtmlRange( ) return { - classList: value, + classList: value.substr(beforeOffset, value.length + afterOffset), range: { start: { line: range.start.line + start.line,