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 {
16071607
16081608 this . initialized = true
16091609
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 ) {
16111618 console . error ( 'No workspace folders found, not initializing.' )
16121619 return
16131620 }
16141621
1622+ base = normalizePath ( base )
1623+
16151624 let workspaceFolders : Array < ProjectConfig > = [ ]
16161625 let globalSettings = await getConfiguration ( )
16171626 let ignore = globalSettings . tailwindCSS . files . exclude
16181627 let configFileOrFiles = globalSettings . tailwindCSS . experimental . configFile
16191628
1620- let base = normalizePath ( normalizeFileNameToFsPath ( this . initializeParams . rootPath ) )
16211629 let cssFileConfigMap : Map < string , string > = new Map ( )
16221630 let configTailwindVersionMap : Map < string , string > = new Map ( )
16231631
You can’t perform that action at this time.
0 commit comments