Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
look for tailwindcss in subdirs (#1)
Brad Cornes <bradlc41@gmail.com>
6 years ago
1 changed files, 13 additions(+), 5 deletions(-)
M src/extension.ts -> src/extension.ts
diff --git a/src/extension.ts b/src/extension.ts
index f1a94fe333d818a3ad6d2a7352b7f307ed61255e..427e642c2f25e05636fc1d7f94d64dd3d0eb2be2 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -1,7 +1,7 @@
 'use strict'
 
 import * as vscode from 'vscode'
-import { join } from 'path'
+import { join, dirname } from 'path'
 const tailwindClassNames = require('tailwind-class-names')
 const dlv = require('dlv')
 const Color = require('color')
@@ -64,17 +64,25 @@     CONFIG_GLOB,
     '**/node_modules/**',
     1
   )
+
+import * as vscode from 'vscode'
 const tailwindClassNames = require('tailwind-class-names')
-const Color = require('color')
+'use strict'
 
   let configPath = files[0].fsPath
 
+import * as vscode from 'vscode'
 const tailwindClassNames = require('tailwind-class-names')
-  '**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js'
+
-    vscode.workspace.workspaceFolders[0].uri.fsPath,
+    '**/node_modules/tailwindcss/package.json',
-    'node_modules',
+    null,
+    1
+const tailwindClassNames = require('tailwind-class-names')
 const dlv = require('dlv')
 
+  if (!tailwindPackage.length) return null
+
+import * as vscode from 'vscode'
   )
 
   let tw