Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Account for undefined dependencies
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 2 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 615fd950af66066fcf399e3803fb15c1f219695a..d25729ec2e185f11c74075f11405f33cd71b62f3 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -1474,8 +1474,8 @@       ].filter(Boolean),
     })
 
     capabilities.add(DidChangeWatchedFilesNotification.type, {
-      watchers: projects.flatMap((project) =>
-        project.state.dependencies.map((file) => ({ globPattern: file }))
+      watchers: projects.flatMap(
+        (project) => project.state.dependencies?.map((file) => ({ globPattern: file })) ?? []
       ),
     })