File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1607,17 +1607,25 @@ class TW {
1607
1607
1608
1608
this . initialized = true
1609
1609
1610
- if ( ! this . initializeParams . rootPath ) {
1610
+ let base : string
1611
+ if ( this . initializeParams . rootUri ) {
1612
+ base = URI . parse ( this . initializeParams . rootUri ) . fsPath
1613
+ } else if ( this . initializeParams . rootPath ) {
1614
+ base = normalizeFileNameToFsPath ( this . initializeParams . rootPath )
1615
+ }
1616
+
1617
+ if ( ! base ) {
1611
1618
console . error ( 'No workspace folders found, not initializing.' )
1612
1619
return
1613
1620
}
1614
1621
1622
+ base = normalizePath ( base )
1623
+
1615
1624
let workspaceFolders : Array < ProjectConfig > = [ ]
1616
1625
let globalSettings = await getConfiguration ( )
1617
1626
let ignore = globalSettings . tailwindCSS . files . exclude
1618
1627
let configFileOrFiles = globalSettings . tailwindCSS . experimental . configFile
1619
1628
1620
- let base = normalizePath ( normalizeFileNameToFsPath ( this . initializeParams . rootPath ) )
1621
1629
let cssFileConfigMap : Map < string , string > = new Map ( )
1622
1630
let configTailwindVersionMap : Map < string , string > = new Map ( )
1623
1631
You can’t perform that action at this time.
0 commit comments