File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/vscode-tailwindcss Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 327
327
"color-name" : " 1.1.4" ,
328
328
"concurrently" : " 7.0.0" ,
329
329
"minimatch" : " 5.1.4" ,
330
+ "normalize-path" : " 3.0.0" ,
330
331
"rimraf" : " 3.0.2" ,
331
332
"vsce" : " 2.15.0" ,
332
333
"vscode-languageclient" : " 8.0.2"
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import namedColors from 'color-name'
44
44
import minimatch from 'minimatch'
45
45
import { CONFIG_GLOB , CSS_GLOB } from 'tailwindcss-language-server/src/lib/constants'
46
46
import braces from 'braces'
47
+ import normalizePath from 'normalize-path'
47
48
48
49
const colorNames = Object . keys ( namedColors )
49
50
@@ -443,7 +444,7 @@ export async function activate(context: ExtensionContext) {
443
444
documentSelector : languages . get ( folder . uri . toString ( ) ) . map ( ( language ) => ( {
444
445
scheme : 'file' ,
445
446
language,
446
- pattern : `${ folder . uri . fsPath . replace ( / [ \[ \] \{ \} ] / g, '?' ) } /**/*` ,
447
+ pattern : normalizePath ( `${ folder . uri . fsPath . replace ( / [ \[ \] \{ \} ] / g, '?' ) } /**/*` ) ,
447
448
} ) ) ,
448
449
diagnosticCollectionName : CLIENT_ID ,
449
450
workspaceFolder : folder ,
You can’t perform that action at this time.
0 commit comments