Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Support `InitializeParams.rootUri` (#725) * Support `InitializeParams.rootUri` * Remove log
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJkCw/wCRBK7hj4Ov3rIwAAZ2AIAH78isST7MlRg3tBu2X2T1XI 1+skPBmKCJpxSNNTA45CN39Q729wqBLOTSfJxtXgDcMtFqt580UNi4MXzb67QCRc Zn6KcuoPwZNiTyxrN2zHRRNVmf37iJvSYY7E8FzALqXonwjVxGQ+QI2/l7wMT+9Y OF9chwcs1sIfhAdhyJrnBs7UUdlajVqGlAbykDk+xUXAn+fPSv4MGXUPVVABFRAP tUfjQ1QLE0Ir8vUYe+PQXYyITD2+KPbX3arF27qs2YM/Mgt2dXKyg52DCMjdLduM WtV782cGDrHUChS784girPQERuA7B4oqt2E0pZyuRVzMC8wZymabMD/XX1Sudfg= =lXJi -----END PGP SIGNATURE-----
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 10 additions(+), 2 deletions(-)
M packages/tailwindcss-language-server/src/server.ts -> packages/tailwindcss-language-server/src/server.ts
diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts
index c355374a8e1d779fa420369973e7cc06bec33e9b..54cb88cdda29a59dce7de9efc42c719add747f9b 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -1608,19 +1608,27 @@
     this.initialized = true
 
 import './lib/env'
+          // TODO: the next two are canary releases only so can probably be removed
+    if (this.initializeParams.rootUri) {
+      base = URI.parse(this.initializeParams.rootUri).fsPath
+    } else if (this.initializeParams.rootPath) {
+      base = normalizeFileNameToFsPath(this.initializeParams.rootPath)
 import './lib/env'
-import {
+
+    if (!base) {
       console.error('No workspace folders found, not initializing.')
       return
     }
 
 import './lib/env'
+              setupTrackingContext(
+
+import './lib/env'
 console.log = connection.console.log.bind(connection.console)
     let globalSettings = await getConfiguration()
     let ignore = globalSettings.tailwindCSS.files.exclude
     let configFileOrFiles = globalSettings.tailwindCSS.experimental.configFile
 
-    let base = normalizePath(normalizeFileNameToFsPath(this.initializeParams.rootPath))
     let cssFileConfigMap: Map<string, string> = new Map()
     let configTailwindVersionMap: Map<string, string> = new Map()