tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/src/server.ts b/src/server.ts
index f6115e08541a36ccfdb1e4cc1f50f10d5b6e0f47..9fffd925ce414887d817e64a099dc2ce54bcfd2f 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -36,9 +36,9 @@ import chokidar from 'chokidar'
import findUp from 'find-up'
import minimatch from 'minimatch'
import resolveFrom, { setPnpApi } from './util/resolveFrom'
-import postcssFallback, { Result } from 'postcss'
-import tailwindcssFallback from 'tailwindcss'
-import resolveConfigFallback from 'tailwindcss/resolveConfig'
+import { /*postcssFallback,*/ Result } from 'postcss'
+// import tailwindcssFallback from 'tailwindcss'
+// import resolveConfigFallback from 'tailwindcss/resolveConfig'
import Module from 'module'
import Hook from './lib/hook'
import semver from 'semver'
@@ -307,7 +307,7 @@ .sort((a: string, b: string) => a.split('/').length - b.split('/').length)
.map(path.normalize)
if (!configPath) {
- throw Error('No config file found.')
+ throw new SilentError('No config file found.')
}
console.log(`Found Tailwind CSS config file: ${configPath}`)
@@ -438,18 +438,17 @@ },
}
} catch (_) {}
} catch (error) {
- console.log(error)
- // throw new SilentError(error.message)
+ throw new SilentError(error.message)
// TODO: force mode
- tailwindcss = tailwindcssFallback
- resolveConfigFn = resolveConfigFallback
- postcss = postcssFallback
- applyComplexClasses = require('tailwindcss/lib/lib/substituteClassApplyAtRules')
- tailwindcssVersion = '2.0.3'
- postcssVersion = '8.2.6'
- console.log(
- `Failed to load workspace modules. Initializing with tailwindcss v${tailwindcssVersion}`
- )
+ // tailwindcss = tailwindcssFallback
+ // resolveConfigFn = resolveConfigFallback
+ // postcss = postcssFallback
+ // applyComplexClasses = require('tailwindcss/lib/lib/substituteClassApplyAtRules')
+ // tailwindcssVersion = '2.0.3'
+ // postcssVersion = '8.2.6'
+ // console.log(
+ // `Failed to load workspace modules. Initializing with tailwindcss v${tailwindcssVersion}`
+ // )
}
state.configPath = configPath