Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix folder count check
  • Loading branch information
thecrypticace committed Apr 24, 2024
commit d3a321d412ce0f4234fb1ac02f68aa83941ad015
3 changes: 2 additions & 1 deletion packages/vscode-tailwindcss/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ export async function activate(context: ExtensionContext) {
Workspace.textDocuments.forEach(didOpenTextDocument)
context.subscriptions.push(
Workspace.onDidChangeWorkspaceFolders(async () => {
if (Workspace.workspaceFolders?.length ?? 0 > 0) return
let folderCount = Workspace.workspaceFolders?.length ?? 0
if (folderCount > 0) return
if (!currentClient) return

let client = await currentClient
Expand Down