Skip to content

Commit 50432c9

Browse files
committed
wip
1 parent 8b6eafa commit 50432c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/vscode-tailwindcss/src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const CLIENT_ID = 'tailwindcss-intellisense'
4646
const CLIENT_NAME = 'Tailwind CSS IntelliSense'
4747

4848
let currentClient: Promise<LanguageClient> | null = null
49+
let pendingSearch: Promise<void> | null = null
4950

5051
function 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))

0 commit comments

Comments
 (0)