We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 901cdf0 commit be22fc3Copy full SHA for be22fc3
packages/tailwindcss-language-server/src/oxide.ts
@@ -131,9 +131,21 @@ export async function scan(options: ScanOptions): Promise<ScanResult | null> {
131
}
132
133
// V3
134
+ if (lte(options.oxideVersion, '4.0.0-alpha.31')) {
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
147
let scanner = new oxide.Scanner({
- detectSources: { base: options.basePath },
- sources: options.sources,
148
+ sources: [{ base: options.basePath, pattern: '**/*' }, ...options.sources],
149
})
150
151
return {
0 commit comments