From ce7afe03f2efeb8f1133fa0cfd7734eb110de2f2 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Sun, 9 Oct 2022 01:48:51 +0200 Subject: [PATCH] correctly exclude builtin.zig from build.zig search --- src/DocumentStore.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DocumentStore.zig b/src/DocumentStore.zig index be84f81..8270bf4 100644 --- a/src/DocumentStore.zig +++ b/src/DocumentStore.zig @@ -654,7 +654,7 @@ fn createDocument(self: *DocumentStore, uri: Uri, text: [:0]u8, open: bool) erro } else |err| { log.debug("Failed to load build file {s}: (error: {})", .{ uri, err }); } - } else if (self.config.zig_exe_path != null and std.mem.endsWith(u8, uri, "/builtin.zig") and !in_std) blk: { + } else if (self.config.zig_exe_path != null and !std.mem.endsWith(u8, uri, "/builtin.zig") and !in_std) blk: { log.debug("Going to walk down the tree towards: {s}", .{uri}); // walk down the tree towards the uri. When we hit build.zig files // determine if the uri we're interested in is involved with the build.