From 69e809f64a30b09d9bd5ab56a3a80e94fc3f99c3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 19:36:52 -0300 Subject: split pardes.zig by noun, lsp/Ask: the core's side of a question to the language servers moves into src/lsp/Ask.zig: lspRequest, lspResponse and what an answer does (LspEdit, parseLspEdits, decodePct, mapLspEditOffset, applyLspEdits, lspWord); the session keeps p.lspRequest as a declaration alias (every language word, macOS and the tests call it), lsp.zig names the file (pardes.lsp.Ask, for test/output.zig), and the 9P tests in ninep/ctl.zig call Ask.lspResponse; the wait's fields stay the session's until #38; tests moved with them, by name: Lspwhy after a Hover asks to explain that hover, in its file at its place, run from any pane; Def and Refs are a speaking file's tag words; gd, gr and a 2-1 chord all run them; Callstack always opens and focuses its own pane, reusing it for another symbol; Callers with one answer jumps to it and says where, in a msg; a Rename the language server finds nothing for says so, and changes nothing; LSP failure clears only its matching wait without completion indentation; a pure move, no field touched, a dump and the wire as they were; gates: tui core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), gui unit-test 1518/1519 (1 skipped) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/lsp/lsp.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lsp/lsp.zig') diff --git a/src/lsp/lsp.zig b/src/lsp/lsp.zig index e307a40d..eefa27c9 100644 --- a/src/lsp/lsp.zig +++ b/src/lsp/lsp.zig @@ -1,5 +1,8 @@ const std = @import("std"); +/// The core's side of a question to the servers (Ask.zig). +pub const Ask = @import("Ask.zig"); + pub const Kind = enum { definition, declaration, -- cgit v1.3