File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/tailwindcss-language-server/src/util Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import * as path from 'node:path'
33import type { TextDocument } from 'vscode-languageserver-textdocument'
44import type { State } from '@tailwindcss/language-service/src/util/state'
55import { getFileFsPath } from './uri'
6+ import { normalizePath , normalizeDriveLetter } from '../utils'
67
78export default async function isExcluded (
89 state : State ,
@@ -11,8 +12,15 @@ export default async function isExcluded(
1112) : Promise < boolean > {
1213 let settings = await state . editor . getConfiguration ( document . uri )
1314
15+ file = normalizePath ( file )
16+ file = normalizeDriveLetter ( file )
17+
1418 for ( let pattern of settings . tailwindCSS . files . exclude ) {
15- if ( picomatch ( path . join ( state . editor . folder , pattern ) ) ( file ) ) {
19+ pattern = path . join ( state . editor . folder , pattern )
20+ pattern = normalizePath ( pattern )
21+ pattern = normalizeDriveLetter ( pattern )
22+
23+ if ( picomatch ( pattern ) ( file ) ) {
1624 return true
1725 }
1826 }
You can’t perform that action at this time.
0 commit comments