tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/packages/tailwindcss-intellisense/src/class-names/index.js b/packages/tailwindcss-intellisense/src/class-names/index.js
index 48c6f30d32ca3deef829f0c03168f389d6efe2be..e8034c45269416cd66518340886c3b7394a6de5d 100644
--- a/packages/tailwindcss-intellisense/src/class-names/index.js
+++ b/packages/tailwindcss-intellisense/src/class-names/index.js
@@ -10,6 +10,7 @@ import getVariants from './getVariants'
import resolveConfig from './resolveConfig'
import * as path from 'path'
import * as fs from 'fs'
+import * as os from 'os'
import { getUtilityConfigMap } from './getUtilityConfigMap'
import glob from 'fast-glob'
import normalizePath from 'normalize-path'
@@ -38,6 +39,12 @@ ignore: ['**/node_modules'],
onlyFiles: true,
absolute: true,
suppressErrors: true,
+ // fast-glob defaults concurrency to `os.cpus().length`,
+ // but this can be 0, so we override it here, ensuring
+ // that concurrency is at least 1. Fix is here but is
+ // currently unpublished:
+ // https://github.com/mrmlnc/fast-glob/pull/296
+ concurrency: Math.max(os.cpus().length, 1),
})
)
.map(normalizePath)