Skip to content

Commit 8844f37

Browse files
committed
Allow passing a config to contentSelectorsFromConfig
1 parent 1c77f60 commit 8844f37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/tailwindcss-language-server/src/project-locator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,13 +545,14 @@ function contentSelectorsFromConfig(
545545
entry: ConfigEntry,
546546
features: Feature[],
547547
resolver: Resolver,
548+
actualConfig?: any,
548549
): AsyncIterable<DocumentSelector> {
549550
if (entry.type === 'css') {
550551
return contentSelectorsFromCssConfig(entry, resolver)
551552
}
552553

553554
if (entry.type === 'js') {
554-
return contentSelectorsFromJsConfig(entry, features)
555+
return contentSelectorsFromJsConfig(entry, features, actualConfig)
555556
}
556557
}
557558

0 commit comments

Comments
 (0)