File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -609,7 +609,9 @@ function testLocator({
609
609
prepare,
610
610
options,
611
611
async handle ( { search } ) {
612
+ console . log ( 'Start search…' )
612
613
let projects = await search ( settings )
614
+ console . log ( 'Finish search…' )
613
615
614
616
let details = projects . map ( ( project ) => ( {
615
617
version : project . tailwind . isDefaultVersion
@@ -655,9 +657,15 @@ async function prepare({ root }: TestUtils<any>) {
655
657
...overrides ,
656
658
}
657
659
660
+ console . log ( 'Before create resolver' )
658
661
let resolver = await createResolver ( { root, tsconfig : true } )
662
+
663
+ console . log ( 'Before create locator' )
659
664
let locator = new ProjectLocator ( root , settings , resolver )
665
+
666
+ console . log ( 'Before search' )
660
667
let projects = await locator . search ( )
668
+ console . log ( 'After search' )
661
669
662
670
// Normalize all the paths for easier testing
663
671
for ( let project of projects ) {
Original file line number Diff line number Diff line change @@ -50,10 +50,14 @@ export class ProjectLocator {
50
50
51
51
async search ( ) : Promise < ProjectConfig [ ] > {
52
52
// Locate all the Tailwind CSS config files in the project
53
+ console . log ( 'Before find configs' )
53
54
let configs = await this . findConfigs ( )
55
+ console . log ( 'After find configs' )
54
56
55
57
// Create a project for each of the config files
56
58
let results = await Promise . allSettled ( configs . map ( ( config ) => this . createProject ( config ) ) )
59
+ console . log ( 'After create projects' )
60
+
57
61
let projects : ProjectConfig [ ] = [ ]
58
62
59
63
for ( let result of results ) {
You can’t perform that action at this time.
0 commit comments