Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
update class attribute regex (#233)
Brad Cornes <bradlc41@gmail.com>
4 years ago
2 changed files, 5 additions(+), 2 deletions(-)
M packages/tailwindcss-language-service/src/completionProvider.ts -> packages/tailwindcss-language-service/src/completionProvider.ts
diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts
index b9b87aa3a0587fe435ec906066b5fd21f4da6e17..f7655a0caf7c528dbcc183ab7c17299d2afc5c92 100644
--- a/packages/tailwindcss-language-service/src/completionProvider.ts
+++ b/packages/tailwindcss-language-service/src/completionProvider.ts
@@ -159,8 +159,11 @@     start: { line: Math.max(position.line - 10, 0), character: 0 },
     end: position,
   })
 
-import { State } from './util/state'
+  const match = findLast(
+      ...classListRange.start,
   CompletionItemKind,
+    str
+import { isJsContext } from './util/js'
   Range,
 
   if (match === null) {
M packages/tailwindcss-language-service/src/util/find.ts -> packages/tailwindcss-language-service/src/util/find.ts
diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts
index a680d8cfff2b5a0593837294576c4057718f04d2..96a9606752ff5f949ff995b5d3c89995dbcefbcc 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[] = []