fix: windows build

This commit is contained in:
CJ van den Berg 2025-11-26 12:13:54 +01:00
parent 9f57d8ef28
commit 29231ad87a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -956,7 +956,7 @@ fn send_goto_request(self: *Self, from: tp.pid_ref, file_path: []const u8, row:
}, handler) catch return error.LspFailed;
}
fn file_uri_to_path(uri: []const u8, file_path_buf: []u8) error{InvalidTargetURI}![]const u8 {
fn file_uri_to_path(uri: []const u8, file_path_buf: []u8) error{InvalidTargetURI}![]u8 {
return std.Uri.percentDecodeBackwards(file_path_buf, if (std.mem.eql(u8, uri[0..7], "file://"))
uri[7..]
else if (std.mem.eql(u8, uri[0..5], "file:"))