tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
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 })) ?? []
),
})