Skip to content

Commit 411dd9c

Browse files
committed
wip
1 parent 336c2f6 commit 411dd9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { URL, fileURLToPath } from 'url'
55
import { Settings } from '@tailwindcss/language-service/src/util/state'
66
import { createResolver } from './resolver'
77
import { css, defineTest, js, json, scss, Storage, TestUtils } from './testing'
8+
import { normalizePath } from './utils'
89

910
let settings: Settings = {
1011
tailwindCSS: {
@@ -374,6 +375,7 @@ async function prepare({ root }: TestUtils) {
374375

375376
function adjustPath(filepath: string) {
376377
filepath = filepath.replace(root, '{URL}')
378+
filepath = normalizePath(filepath)
377379

378380
if (filepath.startsWith('{URL}/')) {
379381
filepath = filepath.slice(5)

0 commit comments

Comments
 (0)