diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 10:40:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 10:57:08 -0300 |
| commit | e6a9e2a3bbc5954d2c562019b3ce2983bb98b9cc (patch) | |
| tree | 84b50c6a5103acdba0a55f919f1f466393559d51 /build.zig | |
| parent | 9941d55222a913ab353fedb4451092be0d958206 (diff) | |
| download | pardes-e6a9e2a3bbc5954d2c562019b3ce2983bb98b9cc.tar.gz pardes-e6a9e2a3bbc5954d2c562019b3ce2983bb98b9cc.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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, |
