Skip to content

Commit 16661bb

Browse files
committed
do not try to read directory entries when walking workspace folders
1 parent 54cc54d commit 16661bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DocumentStore.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,7 @@ pub fn loadDirectoryRecursive(store: *DocumentStore, directory_uri: Uri) !usize
14361436

14371437
{
14381438
while (try walker.next()) |entry| {
1439+
if (entry.kind == .directory) continue;
14391440
if (std.mem.indexOf(u8, entry.path, std.fs.path.sep_str ++ ".zig-cache" ++ std.fs.path.sep_str) != null) continue;
14401441
if (std.mem.startsWith(u8, entry.path, ".zig-cache" ++ std.fs.path.sep_str)) continue;
14411442
if (!std.mem.eql(u8, std.fs.path.extension(entry.basename), ".zig")) continue;

0 commit comments

Comments
 (0)