Skip to content

Commit bba9b29

Browse files
Prep for Oxide API changes (#1078)
Related to tailwindlabs/tailwindcss#14767
1 parent 901cdf0 commit bba9b29

File tree

1 file changed

+14
-2
lines changed
  • packages/tailwindcss-language-server/src

1 file changed

+14
-2
lines changed

packages/tailwindcss-language-server/src/oxide.ts

+14-2
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,21 @@ export async function scan(options: ScanOptions): Promise<ScanResult | null> {
131131
}
132132

133133
// V3
134+
if (lte(options.oxideVersion, '4.0.0-alpha.30')) {
135+
let scanner = new oxide.Scanner({
136+
detectSources: { base: options.basePath },
137+
sources: options.sources,
138+
})
139+
140+
return {
141+
files: scanner.files,
142+
globs: scanner.globs,
143+
}
144+
}
145+
146+
// V4
134147
let scanner = new oxide.Scanner({
135-
detectSources: { base: options.basePath },
136-
sources: options.sources,
148+
sources: [{ base: options.basePath, pattern: '**/*' }, ...options.sources],
137149
})
138150

139151
return {

0 commit comments

Comments
 (0)