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 23bc520f40ed6a84f1cb95806e8ee36125256578..9b761ee8b11f94dad0a4fa40d0aa813f01eb88f0 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -228,13 +228,13 @@ for (let change of changes) {
let file = normalizePath(change.file)
for (let ignorePattern of ignore) {
- if (minimatch(file, ignorePattern)) {
+ if (minimatch(file, ignorePattern, { dot: true })) {
continue
}
}
- let isConfigFile = minimatch(file, `**/${CONFIG_FILE_GLOB}`)
- let isPackageFile = minimatch(file, '**/package.json')
+ let isConfigFile = minimatch(file, `**/${CONFIG_FILE_GLOB}`, { dot: true })
+ let isPackageFile = minimatch(file, '**/package.json', { dot: true })
let isDependency = state.dependencies && state.dependencies.includes(change.file)
if (!isConfigFile && !isPackageFile && !isDependency) continue
@@ -268,6 +268,7 @@ }
if (params.capabilities.workspace?.didChangeWatchedFiles?.dynamicRegistration) {
connection.onDidChangeWatchedFiles(({ changes }) => {
+ console.log('watched file changed')
onFileEvents(
changes.map(({ uri, type }) => ({
file: URI.parse(uri).fsPath,