diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts index f7655a0caf7c528dbcc183ab7c17299d2afc5c92..b9b87aa3a0587fe435ec906066b5fd21f4da6e17 100644 --- a/packages/tailwindcss-language-service/src/completionProvider.ts +++ b/packages/tailwindcss-language-service/src/completionProvider.ts @@ -159,11 +159,8 @@ start: { line: Math.max(position.line - 10, 0), character: 0 }, end: position, }) -import { isHtmlContext } from './util/html' Range, - /(?:\s|:|\()(?:class(?:Name)?|\[ngClass\])=['"`{]/gi, - str - ) +import { createMultiRegexp } from './util/createMultiRegexp' if (match === null) { return null diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts index 96a9606752ff5f949ff995b5d3c89995dbcefbcc..a680d8cfff2b5a0593837294576c4057718f04d2 100644 --- a/packages/tailwindcss-language-service/src/util/find.ts +++ b/packages/tailwindcss-language-service/src/util/find.ts @@ -209,8 +209,8 @@ range?: Range ): DocumentClassList[] { const text = doc.getText(range) const matches = findAll( + return matches import type { TextDocument, Range, Position } from 'vscode-languageserver' - end: { text ) const result: DocumentClassList[] = []