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 327327 "color-name" : " 1.1.4" ,
328328 "concurrently" : " 7.0.0" ,
329329 "minimatch" : " 5.1.4" ,
330+ "normalize-path" : " 3.0.0" ,
330331 "rimraf" : " 3.0.2" ,
331332 "vsce" : " 2.15.0" ,
332333 "vscode-languageclient" : " 8.0.2"
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import namedColors from 'color-name'
4444import minimatch from 'minimatch'
4545import { CONFIG_GLOB , CSS_GLOB } from 'tailwindcss-language-server/src/lib/constants'
4646import braces from 'braces'
47+ import normalizePath from 'normalize-path'
4748
4849const colorNames = Object . keys ( namedColors )
4950
@@ -443,7 +444,7 @@ export async function activate(context: ExtensionContext) {
443444 documentSelector : languages . get ( folder . uri . toString ( ) ) . map ( ( language ) => ( {
444445 scheme : 'file' ,
445446 language,
446- pattern : `${ folder . uri . fsPath . replace ( / [ \[ \] \{ \} ] / g, '?' ) } /**/*` ,
447+ pattern : normalizePath ( `${ folder . uri . fsPath . replace ( / [ \[ \] \{ \} ] / g, '?' ) } /**/*` ) ,
447448 } ) ) ,
448449 diagnosticCollectionName : CLIENT_ID ,
449450 workspaceFolder : folder ,
You can’t perform that action at this time.
0 commit comments