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(
5252
5353 invariant ( configPaths . length > 0 , 'No Tailwind CSS config found.' )
5454 const configPath = configPaths [ 0 ]
55+ console . log ( `Found Tailwind config file: ${ configPath } ` )
5556 const configDir = path . dirname ( configPath )
5657 const tailwindBase = path . dirname (
5758 resolveFrom ( configDir , 'tailwindcss/package.json' )
5859 )
5960 postcss = importFrom ( tailwindBase , 'postcss' )
6061 tailwindcss = importFrom ( configDir , 'tailwindcss' )
6162 version = importFrom ( configDir , 'tailwindcss/package.json' ) . version
63+ console . log ( `Found tailwindcss v${ version } : ${ tailwindBase } ` )
6264
6365 try {
6466 // this is not required
@@ -193,7 +195,9 @@ export default async function getClassNames(
193195 let result
194196 try {
195197 result = await run ( )
196- } catch ( _ ) {
198+ console . log ( 'Initialised successfully.' )
199+ } catch ( error ) {
200+ console . error ( 'Failed to initialise:' , error )
197201 return null
198202 }
199203
You can’t perform that action at this time.
0 commit comments