File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2120,14 +2120,15 @@ class TW {
2120
2120
}
2121
2121
return 0
2122
2122
} )
2123
- for ( let { pattern , priority } of documentSelector ) {
2123
+ for ( let selector of documentSelector ) {
2124
2124
let fsPath = URI . parse ( document . uri ) . fsPath
2125
+ let pattern = selector . pattern . replace ( / [ \[ \] { } ] / g, ( m ) => `\\${ m } ` )
2125
2126
if ( pattern . startsWith ( '!' ) && minimatch ( fsPath , pattern . slice ( 1 ) , { dot : true } ) ) {
2126
2127
break
2127
2128
}
2128
- if ( minimatch ( fsPath , pattern , { dot : true } ) && priority < matchedPriority ) {
2129
+ if ( minimatch ( fsPath , pattern , { dot : true } ) && selector . priority < matchedPriority ) {
2129
2130
matchedProject = project
2130
- matchedPriority = priority
2131
+ matchedPriority = selector . priority
2131
2132
}
2132
2133
}
2133
2134
} else {
You can’t perform that action at this time.
0 commit comments