File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ export class TW {
174
174
}
175
175
}
176
176
177
+ if ( results . some ( ( result ) => result . status === 'fulfilled' ) ) {
178
+ await this . updateCommonCapabilities ( )
179
+ }
180
+
177
181
await this . listenForEvents ( )
178
182
}
179
183
@@ -628,8 +632,6 @@ export class TW {
628
632
629
633
console . log ( `[Global] Initializing projects...` )
630
634
631
- await this . updateCommonCapabilities ( )
632
-
633
635
// init projects for documents that are _already_ open
634
636
let readyDocuments : string [ ] = [ ]
635
637
let enabledProjectCount = 0
@@ -896,6 +898,7 @@ export class TW {
896
898
capabilities . add ( DidChangeConfigurationNotification . type , undefined )
897
899
}
898
900
901
+ this . commonRegistrations ?. dispose ( )
899
902
this . commonRegistrations = await this . connection . client . register ( capabilities )
900
903
}
901
904
You can’t perform that action at this time.
0 commit comments