zls icon indicating copy to clipboard operation
zls copied to clipboard

Go to definition on file struct should look for `@This()`.

Open Vexu opened this issue 2 years ago • 0 comments

// If I go to definition on `File` -
const File = @import("path/to/File.zig");
// ZLS should search `File.zig` for a `@This()` assigned to the same name.
const File = @This();

Vexu avatar Nov 11 '23 09:11 Vexu