Skip to content

Commit 80e2e5a

Browse files
committed
Fix resolution of WSL files on Windows (#411)
1 parent d32e9cc commit 80e2e5a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ async function createProjectService(
430430
concurrency: Math.max(os.cpus().length, 1),
431431
})
432432
)
433-
.map(normalizePath)
434433
.sort((a: string, b: string) => a.split('/').length - b.split('/').length)
435434
.map(path.normalize)
436435

packages/tailwindcss-language-server/src/util/resolveFrom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export function setPnpApi(pnpApi: any): void {
1818
}
1919

2020
export default function resolveFrom(from?: string, id?: string): string {
21+
if (id.startsWith('\\\\')) return id
2122
let result = resolver.resolveSync({}, from, id)
2223
if (result === false) throw Error()
2324
// https://github.com/webpack/enhanced-resolve/issues/282

0 commit comments

Comments
 (0)