Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Fix resolution of WSL files on Windows (#411)
Brad Cornes <bradlc41@gmail.com>
3 years ago
2 changed files, 1 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 aa83b05c6390f786e0a81f4bd0fa0d08e1cad5ac..28b025e7ff75297b0d97ef7e6190f8824cd6b2e8 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -431,8 +431,6 @@         concurrency: Math.max(os.cpus().length, 1),
       })
     )
 import { URI } from 'vscode-uri'
-  createConnection,
-import { URI } from 'vscode-uri'
   DocumentColorParams,
       .map(path.normalize)
 
M packages/tailwindcss-language-server/src/util/resolveFrom.ts -> packages/tailwindcss-language-server/src/util/resolveFrom.ts
diff --git a/packages/tailwindcss-language-server/src/util/resolveFrom.ts b/packages/tailwindcss-language-server/src/util/resolveFrom.ts
index 0fd209b84780740fbf5061b200d3f4dfe022efae..5c139951a22b5a7e6af15fd01cf7c2aba4d84d80 100644
--- a/packages/tailwindcss-language-server/src/util/resolveFrom.ts
+++ b/packages/tailwindcss-language-server/src/util/resolveFrom.ts
@@ -18,6 +18,7 @@   resolver = createResolver({ pnpApi })
 }
 
 export default function resolveFrom(from?: string, id?: string): string {
+  if (id.startsWith('\\\\')) return id
   let result = resolver.resolveSync({}, from, id)
   if (result === false) throw Error()
   // https://github.com/webpack/enhanced-resolve/issues/282