File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/tailwindcss-intellisense/src/class-names Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,15 @@ export default async function getClassNames(
52
52
53
53
invariant ( configPaths . length > 0 , 'No Tailwind CSS config found.' )
54
54
const configPath = configPaths [ 0 ]
55
+ console . log ( `Found Tailwind config file: ${ configPath } ` )
55
56
const configDir = path . dirname ( configPath )
56
57
const tailwindBase = path . dirname (
57
58
resolveFrom ( configDir , 'tailwindcss/package.json' )
58
59
)
59
60
postcss = importFrom ( tailwindBase , 'postcss' )
60
61
tailwindcss = importFrom ( configDir , 'tailwindcss' )
61
62
version = importFrom ( configDir , 'tailwindcss/package.json' ) . version
63
+ console . log ( `Found tailwindcss v${ version } : ${ tailwindBase } ` )
62
64
63
65
try {
64
66
// this is not required
@@ -193,7 +195,9 @@ export default async function getClassNames(
193
195
let result
194
196
try {
195
197
result = await run ( )
196
- } catch ( _ ) {
198
+ console . log ( 'Initialised successfully.' )
199
+ } catch ( error ) {
200
+ console . error ( 'Failed to initialise:' , error )
197
201
return null
198
202
}
199
203
You can’t perform that action at this time.
0 commit comments