Skip to content

Commit 27b8072

Browse files
committed
Don’t detect document links for glob-style paths
1 parent f317d85 commit 27b8072

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/tailwindcss-language-service/src/documentLinksProvider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ function getDirectiveLinks(
5454
for (let match of matches) {
5555
let path = match.groups.path.slice(1, -1)
5656

57+
// Ignore glob-like paths
58+
if (path.includes('*') || path.includes('{') || path.includes('}')) {
59+
continue
60+
}
61+
5762
let range = {
5863
start: indexToPosition(text, match.index + match[0].length - match.groups.path.length),
5964
end: indexToPosition(text, match.index + match[0].length),

0 commit comments

Comments
 (0)