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(
228228 let file = normalizePath ( change . file )
229229
230230 for ( let ignorePattern of ignore ) {
231- if ( minimatch ( file , ignorePattern ) ) {
231+ if ( minimatch ( file , ignorePattern , { dot : true } ) ) {
232232 continue
233233 }
234234 }
235235
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 } )
238238 let isDependency = state . dependencies && state . dependencies . includes ( change . file )
239239
240240 if ( ! isConfigFile && ! isPackageFile && ! isDependency ) continue
@@ -268,6 +268,7 @@ async function createProjectService(
268268
269269 if ( params . capabilities . workspace ?. didChangeWatchedFiles ?. dynamicRegistration ) {
270270 connection . onDidChangeWatchedFiles ( ( { changes } ) => {
271+ console . log ( 'watched file changed' )
271272 onFileEvents (
272273 changes . map ( ( { uri, type } ) => ( {
273274 file : URI . parse ( uri ) . fsPath ,
You can’t perform that action at this time.
0 commit comments