Skip to content

Commit fc30d0d

Browse files
committed
Fix duplicate document selector
1 parent 44e38c3 commit fc30d0d

File tree

1 file changed

+8
-4
lines changed
  • packages/tailwindcss-language-server/src

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,10 +1579,14 @@ class TW {
15791579
pattern: normalizePath(filename),
15801580
priority: 0,
15811581
})
1582-
.concat({
1583-
pattern: normalizePath(configPath),
1584-
priority: 0,
1585-
})
1582+
.concat(
1583+
isCssFile
1584+
? {
1585+
pattern: normalizePath(configPath),
1586+
priority: 0,
1587+
}
1588+
: []
1589+
)
15861590
.concat({
15871591
pattern: normalizePath(path.join(path.dirname(filename), '**')),
15881592
priority: 2,

0 commit comments

Comments
 (0)