File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -228,13 +228,13 @@ async function createProjectService(
228
228
let file = normalizePath ( change . file )
229
229
230
230
for ( let ignorePattern of ignore ) {
231
- if ( minimatch ( file , ignorePattern ) ) {
231
+ if ( minimatch ( file , ignorePattern , { dot : true } ) ) {
232
232
continue
233
233
}
234
234
}
235
235
236
- let isConfigFile = minimatch ( file , `**/${ CONFIG_FILE_GLOB } ` )
237
- let isPackageFile = minimatch ( file , '**/package.json' )
236
+ let isConfigFile = minimatch ( file , `**/${ CONFIG_FILE_GLOB } ` , { dot : true } )
237
+ let isPackageFile = minimatch ( file , '**/package.json' , { dot : true } )
238
238
let isDependency = state . dependencies && state . dependencies . includes ( change . file )
239
239
240
240
if ( ! isConfigFile && ! isPackageFile && ! isDependency ) continue
@@ -268,6 +268,7 @@ async function createProjectService(
268
268
269
269
if ( params . capabilities . workspace ?. didChangeWatchedFiles ?. dynamicRegistration ) {
270
270
connection . onDidChangeWatchedFiles ( ( { changes } ) => {
271
+ console . log ( 'watched file changed' )
271
272
onFileEvents (
272
273
changes . map ( ( { uri, type } ) => ( {
273
274
file : URI . parse ( uri ) . fsPath ,
You can’t perform that action at this time.
0 commit comments