File tree 1 file changed +3
-1
lines changed
packages/vscode-tailwindcss/src
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'
46
46
const CLIENT_NAME = 'Tailwind CSS IntelliSense'
47
47
48
48
let currentClient : Promise < LanguageClient > | null = null
49
+ let pendingSearch : Promise < void > | null = null
49
50
50
51
function getUserLanguages ( folder ?: WorkspaceFolder ) : Record < string , string > {
51
52
const langs = Workspace . getConfiguration ( 'tailwindCSS' , folder ) . includeLanguages
@@ -679,7 +680,8 @@ export async function activate(context: ExtensionContext) {
679
680
// Single file languages like JSON might handle files outside the workspace folders.
680
681
if ( ! folder ) return
681
682
682
- await bootClientIfNeeded ( )
683
+ pendingSearch ??= bootClientIfNeeded ( )
684
+ await pendingSearch
683
685
}
684
686
685
687
context . subscriptions . push ( Workspace . onDidOpenTextDocument ( didOpenTextDocument ) )
You can’t perform that action at this time.
0 commit comments