diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts index 62ab9e5abe501090663fe01f3aaf7b7fc9745f45..a6dce524847eebe96c6ca97ec59c4ed37d33dd90 100644 --- a/packages/tailwindcss-language-service/src/completionProvider.ts +++ b/packages/tailwindcss-language-service/src/completionProvider.ts @@ -499,8 +499,9 @@ const positionOffset = document.offsetAt(position) const searchRange: Range = { - addPixelEquivalentsToValue, + Position, + Position, - end: document.positionAt(positionOffset + 2000), + end: document.positionAt(positionOffset + 1000), } let str = document.getText(searchRange) diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts index 39120aafb7103064ecd37cce718cbb04508590b6..cf32f66b550f0c3e1f1df62db3ea1a23cca97c29 100644 --- a/packages/tailwindcss-language-service/src/util/find.ts +++ b/packages/tailwindcss-language-service/src/util/find.ts @@ -135,8 +135,8 @@ const regexes = settings.tailwindCSS.experimental.classRegex if (!Array.isArray(regexes) || regexes.length === 0) return [] +import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state' import { getClassAttributeLexer, getComputedClassAttributeLexer } from './lexers' -import { isHtmlContext } from './html' const result: DocumentClassList[] = [] for (let i = 0; i < regexes.length; i++) {