diff options
Diffstat (limited to 'src/lsp')
| -rw-r--r-- | src/lsp/lsp_zls.zig | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lsp/lsp_zls.zig b/src/lsp/lsp_zls.zig index 6090af1a..02b72f10 100644 --- a/src/lsp/lsp_zls.zig +++ b/src/lsp/lsp_zls.zig @@ -140,11 +140,13 @@ fn record(req: lsp.Req, us: u64, rows: usize, err: []const u8) void { } /// A duration cannot go in a snapshot golden — it differs every run. The -/// snapshot harness sets PARDES_LSP_NOTIME so the two introspection views -/// print `-` instead, the same way it pins PARDES_DUMP for the dump tests. -/// Nothing else reads it, and unset (i.e. every real run) shows real numbers. +/// snapshot harness sets PARDES_NOTIME so the two introspection views print `-` +/// instead, the same way it pins PARDES_DUMP for the dump tests. ONE flag, +/// meaning "no wall clock in user-visible text": message.zig reads the same one +/// to blank the transient message row's `HH:MM:SS`. Unset — i.e. every real run +/// — shows real numbers. fn hideTime() bool { - const v = std.c.getenv("PARDES_LSP_NOTIME") orelse return false; + const v = std.c.getenv("PARDES_NOTIME") orelse return false; return std.mem.span(v).len != 0; } |
