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 {
21202120 }
21212121 return 0
21222122 } )
2123- for ( let { pattern , priority } of documentSelector ) {
2123+ for ( let selector of documentSelector ) {
21242124 let fsPath = URI . parse ( document . uri ) . fsPath
2125+ let pattern = selector . pattern . replace ( / [ \[ \] { } ] / g, ( m ) => `\\${ m } ` )
21252126 if ( pattern . startsWith ( '!' ) && minimatch ( fsPath , pattern . slice ( 1 ) , { dot : true } ) ) {
21262127 break
21272128 }
2128- if ( minimatch ( fsPath , pattern , { dot : true } ) && priority < matchedPriority ) {
2129+ if ( minimatch ( fsPath , pattern , { dot : true } ) && selector . priority < matchedPriority ) {
21292130 matchedProject = project
2130- matchedPriority = priority
2131+ matchedPriority = selector . priority
21312132 }
21322133 }
21332134 } else {
You can’t perform that action at this time.
0 commit comments