From 17908d6d60850d9131b12e480b21e446b0b8eb9a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 14:08:53 -0300 Subject: Lspinfo lists pardes's own dependency imports only for a file in pardes's tree The in-process ZLS's report listed the module map of the build pardes came from (vaxis, ghostty and the rest) for any .zig file, a project that has none of them included. It now lists them only for a file in that tree (project_root, a build option), and says there are none for any other. Co-Authored-By: Claude Opus 5.5 --- build.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 79de8a81..b43f3fd9 100644 --- a/build.zig +++ b/build.zig @@ -752,6 +752,8 @@ pub fn build(b: *std.Build) void { for ([_]?*std.Build.Step.Options{ opts, gui_opts }) |maybe| if (maybe) |o| { o.addOption([]const []const u8, "module_names", mod_names); o.addOption([]const []const u8, "module_roots", mod_roots); + // Whose imports those are: a .zig file outside this tree has none of them. + o.addOption([]const u8, "project_root", b.build_root.path orelse ""); }; const iso_off = b.addOptions(); -- cgit v1.3