From ff2191f765da356c751ab4c9daff529520b4bd74 Mon Sep 17 00:00:00 2001 From: Nicholas Narsing Date: Sun, 11 Jun 2017 17:12:27 -0400 Subject: [PATCH] Undo directory check in ClientFilesFinder Upon further inspection, it seems that the workspace should never contain a directory, so it should be safe. --- src/FilesFinder/ClientFilesFinder.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } }