diff options
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index 4e096c97..40a5083c 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -945,6 +945,34 @@ pub const WsDiagnostics = struct { } }; +// The four hierarchy words, protocol-only (LSP 3.16/3.17): the in-process +// Zig backend has no analyser for them, so in a `.zig` pane they answer +// nothing. helix has no binding for any of the four. + +pub const Callers = struct { + pub fn run(c: Ctx) void { + c.p.lspRequest(c.id, .incoming_calls, ""); + } +}; + +pub const Callees = struct { + pub fn run(c: Ctx) void { + c.p.lspRequest(c.id, .outgoing_calls, ""); + } +}; + +pub const Supertypes = struct { + pub fn run(c: Ctx) void { + c.p.lspRequest(c.id, .supertypes, ""); + } +}; + +pub const Subtypes = struct { + pub fn run(c: Ctx) void { + c.p.lspRequest(c.id, .subtypes, ""); + } +}; + // The two that need a word from the user, handled exactly the way Find and // Grep are: an argument means run it now (a selection chorded onto the name), // no argument arms the tag input and Enter submits (submitSearch). |
