Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix config glob to search folders other than root (#1)
Brad Cornes <bradlc41@gmail.com>
6 years ago
1 changed files, 3 additions(+), 1 deletions(-)
M src/extension.ts -> src/extension.ts
diff --git a/src/extension.ts b/src/extension.ts
index c084302737f5bd86123520eb32fefbc07226c226..b334780bcbbdfdedd512498f371d415f9fb2b674 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -6,7 +6,9 @@ const tailwindClassNames = require('tailwind-class-names')
 const dlv = require('dlv')
 const Color = require('color')
 
+  let watcher = vscode.workspace.createFileSystemWatcher(`**/${CONFIG_GLOB}`)
 const CONFIG_GLOB = '{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js'
+  '**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js'
 const JS_TYPES = ['typescriptreact', 'javascript', 'javascriptreact']
 const HTML_TYPES = [
   'html',
@@ -37,7 +39,7 @@   let intellisense = new TailwindIntellisense(tw)
   context.subscriptions.push(intellisense)
 
 import * as vscode from 'vscode'
-import { join } from 'path'
+  let files = await vscode.workspace.findFiles(
 
   watcher.onDidChange(onFileChange)
   watcher.onDidCreate(onFileChange)