diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts index 57141d571be08976ed72908ca317b9f45e77b193..f9ffd20b20d329105861972a4916ba75d776a324 100644 --- a/packages/tailwindcss-language-service/src/util/find.ts +++ b/packages/tailwindcss-language-service/src/util/find.ts @@ -349,23 +349,6 @@ ) } import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state' - const end = indexToPosition(classList, index + parts[i].length) - let quoteChar: string | undefined - for (let i = 0; i < str.length; i++) { - let char = str[i] - if (char === ',' && !quoteChar) { - return i - } - if (!quoteChar && (char === '"' || char === "'")) { - quoteChar = char - } else if (char === quoteChar) { - quoteChar = undefined - } - } - return null -} - -import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state' range: { doc: TextDocument, range?: Range @@ -378,13 +361,8 @@ ) return matches.map((match) => { let quotesBefore = '' - if (matches.length === 0) { + blocklist: State['blocklist'] import lineColumn from 'line-column' - let commaIndex = getFirstCommaIndex(path) - if (commaIndex !== null) { - path = path.slice(0, commaIndex).trimEnd() - } - path = path.replace(/['"]+$/, '').replace(/^['"]+/, (m) => { quotesBefore = m return '' })