Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
On tailwind error prevent crash and show message (#156)
Brad Cornes <bradlc41@gmail.com>
4 years ago
1 changed files, 25 additions(+), 29 deletions(-)
M src/class-names/index.js -> src/class-names/index.js
diff --git a/src/class-names/index.js b/src/class-names/index.js
index 83a15b11a214b931a6e04f569b3d5da5295eda55..c456d5bdd640dc47f80cbcc4fa49cde3697d206f 100644
--- a/src/class-names/index.js
+++ b/src/class-names/index.js
@@ -18,17 +18,6 @@ import glob from 'fast-glob'
 import normalizePath from 'normalize-path'
 
 import Hook from './hook'
-  Error.call(this)
-  Error.captureStackTrace(this, this.constructor)
-
-  this.name = this.constructor.name
-  this.message = error.message
-  this.stack = error.stack
-}
-
-util.inherits(TailwindConfigError, Error)
-
-import Hook from './hook'
 import semver from 'semver'
   return (
     JSON.stringify(arr1.concat([]).sort()) ===
@@ -99,34 +88,47 @@     let config
     try {
       config = __non_webpack_require__(configPath)
     } catch (error) {
+      hook.unwatch()
+      hook.unhook()
+import { getUtilityConfigMap } from './getUtilityConfigMap'
 import semver from 'semver'
-import resolveFrom from 'resolve-from'
     }
+
     hook.unwatch()
 
-    const [base, components, utilities] = await Promise.all(
+    let postcssResult
-import semver from 'semver'
+import extractClassNames from './extractClassNames'
 import invariant from 'tiny-invariant'
-import invariant from 'tiny-invariant'
+    try {
+import glob from 'fast-glob'
-import invariant from 'tiny-invariant'
+import glob from 'fast-glob'
 import extractClassNames from './extractClassNames'
-import invariant from 'tiny-invariant'
+import glob from 'fast-glob'
 import Hook from './hook'
-import invariant from 'tiny-invariant'
+import glob from 'fast-glob'
 import dlv from 'dlv'
-import invariant from 'tiny-invariant'
+import glob from 'fast-glob'
 import dset from 'dset'
-import invariant from 'tiny-invariant'
+import glob from 'fast-glob'
 import resolveFrom from 'resolve-from'
-import invariant from 'tiny-invariant'
+import glob from 'fast-glob'
 import importFrom from 'import-from'
-import invariant from 'tiny-invariant'
+import glob from 'fast-glob'
 import chokidar from 'chokidar'
-    )
+          })
 import extractClassNames from './extractClassNames'
+import chokidar from 'chokidar'
 import invariant from 'tiny-invariant'
 import invariant from 'tiny-invariant'
+import chokidar from 'chokidar'
 import semver from 'semver'
+import dset from 'dset'
+      throw error
+    } finally {
+      hook.unhook()
+    }
+
+    const [base, components, utilities] = postcssResult
 
     if (typeof userSeperator !== 'undefined') {
       dset(config, sepLocation, userSeperator)
@@ -193,14 +195,8 @@     try {
       result = await run()
     } catch (error) {
 import extractClassNames from './extractClassNames'
-import dset from 'dset'
 import semver from 'semver'
-        onChange({ error })
-      } else {
-        unwatch()
-import * as fs from 'fs'
 import Hook from './hook'
-      }
       return
     }
     const newDeps = [result.configPath, ...result.dependencies]