Skip to content

Commit c4bb443

Browse files
committed
Fix issue where Oxide package detection goes up one directory too far
1 parent 7b89ced commit c4bb443

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,9 @@ async function* detectContentFiles(
627627
resolver: Resolver,
628628
): AsyncIterable<string> {
629629
try {
630-
let oxidePath = await resolver.resolveJsId('@tailwindcss/oxide', path.dirname(base))
630+
let oxidePath = await resolver.resolveJsId('@tailwindcss/oxide', base)
631631
oxidePath = pathToFileURL(oxidePath).href
632-
let oxidePackageJsonPath = await resolver.resolveJsId(
633-
'@tailwindcss/oxide/package.json',
634-
path.dirname(base),
635-
)
632+
let oxidePackageJsonPath = await resolver.resolveJsId('@tailwindcss/oxide/package.json', base)
636633
let oxidePackageJson = JSON.parse(await fs.readFile(oxidePackageJsonPath, 'utf8'))
637634

638635
let result = await oxide.scan({

0 commit comments

Comments
 (0)