diff --git a/src/FilesFinder/ClientFilesFinder.php b/src/FilesFinder/ClientFilesFinder.php index 799f066..4315ede 100644 --- a/src/FilesFinder/ClientFilesFinder.php +++ b/src/FilesFinder/ClientFilesFinder.php @@ -39,8 +39,7 @@ class ClientFilesFinder implements FilesFinder $uris = []; foreach ($textDocuments as $textDocument) { $path = Uri\parse($textDocument->uri)['path']; - // Also exclude any directories that also match the glob pattern - if (Glob::match($path, $glob) && !is_dir($path)) { + if (Glob::match($path, $glob)) { $uris[] = $textDocument->uri; } }