From e6a9e2a3bbc5954d2c562019b3ce2983bb98b9cc Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 10:40:00 -0300 Subject: test: T1 asks the language words' servers, the suite next-tests.md said was missing: a Session made by initLanguage performs each lsp effect as a host does (host_io.Lsp, on the session's thread and at once; host_io is pub in the core for it), a .rs file's server the scripted one (test/lspmock.zig, built for the session's module as for the snapshot scripts), and test/behaviour/callstack.zig pins the guide's Call hierarchy through it: the tree +Callstack shows, and CallstackDepth bounding the walk Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- build.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index d3b82d68..096779a9 100644 --- a/build.zig +++ b/build.zig @@ -1642,6 +1642,19 @@ pub fn build(b: *std.Build) void { .link_libc = true, }); session_module.addImport("pardes", core_module); + // The scripted language server its language words ask + // (Session.initLanguage), as the snapshot scripts' do. + const session_options = b.addOptions(); + session_options.addOptionPath("lspmock", b.addExecutable(.{ + .name = "pardes-lspmock", + .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("test/lspmock.zig"), + .link_libc = true, + }), + }).getEmittedBin()); + session_module.addOptions("session_options", session_options); const behaviour_module = b.createModule(.{ .target = target, .optimize = optimize, -- cgit v1.3