zls icon indicating copy to clipboard operation
zls copied to clipboard

cross-file references on source file struct don't work

Open techatrix opened this issue 9 months ago • 0 comments

Zig Version

0.16.0-dev.2535+b5bd49460

ZLS Version

0.16.0-dev.228+ff0daf26

Client / Code Editor / Extensions

VSCodium (1.106.2)

Steps to Reproduce and Observed Behavior

// A.zig
const A = @This();

fn foo(_: A) void {}

var bar: A = undefined;
// B.zig
const A = @import("A.zig");
//    ^ request references here

The response doesn't report any references in A.zig. This issue is specific to source file structs.

Expected Behavior

The response should report the three references in A.zig.

Attach ZLS log output

No response

techatrix avatar Feb 18 '26 15:02 techatrix