File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/vscode-tailwindcss/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ const CLIENT_ID = 'tailwindcss-intellisense'
4646const CLIENT_NAME = 'Tailwind CSS IntelliSense'
4747
4848let currentClient : Promise < LanguageClient > | null = null
49+ let pendingSearch : Promise < void > | null = null
4950
5051function getUserLanguages ( folder ?: WorkspaceFolder ) : Record < string , string > {
5152 const langs = Workspace . getConfiguration ( 'tailwindCSS' , folder ) . includeLanguages
@@ -679,7 +680,8 @@ export async function activate(context: ExtensionContext) {
679680 // Single file languages like JSON might handle files outside the workspace folders.
680681 if ( ! folder ) return
681682
682- await bootClientIfNeeded ( )
683+ pendingSearch ??= bootClientIfNeeded ( )
684+ await pendingSearch
683685 }
684686
685687 context . subscriptions . push ( Workspace . onDidOpenTextDocument ( didOpenTextDocument ) )
You can’t perform that action at this time.
0 commit comments