Skip to content

Commit 76da857

Browse files
committed
Fix filename checks on Windows
1 parent c6203c7 commit 76da857

File tree

1 file changed

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

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ async function createProjectService(
369369
let file = normalizePath(change.file)
370370

371371
let isConfigFile = projectConfig.configPath
372-
? change.file === projectConfig.configPath
372+
? file === projectConfig.configPath
373373
: minimatch(file, `**/${CONFIG_GLOB}`, { dot: true })
374374
let isDependency = state.dependencies && state.dependencies.includes(change.file)
375375

@@ -1659,7 +1659,10 @@ class TW {
16591659

16601660
for (let [key] of this.projects) {
16611661
let projectConfig = JSON.parse(key) as ProjectConfig
1662-
if (change.file === projectConfig.configPath && change.type === FileChangeType.Deleted) {
1662+
if (
1663+
normalizedFilename === projectConfig.configPath &&
1664+
change.type === FileChangeType.Deleted
1665+
) {
16631666
needsRestart = true
16641667
break changeLoop
16651668
}

0 commit comments

Comments
 (0)