zls/src/ZigVersionWrapper.zig
Lee Cannon 5ede46f003
support new module cli arguments (#1019)
* support new module cli arguments

* capture the runtime zig version and store it on `Server`

* update build_runner action

* Use correct version for selecting arguments
2023-02-23 15:18:52 -05:00

14 lines
297 B
Zig

const std = @import("std");
const Self = @This();
// This is necessary as `std.SemanticVersion` keeps pointers into the parsed string
version: std.SemanticVersion,
allocator: std.mem.Allocator,
raw_string: []const u8,
pub fn free(self: Self) void {
self.allocator.free(self.raw_string);
}