fix(windows): use os native path separator when encoding LSP URIs
This commit is contained in:
parent
9d9d9388b9
commit
cbe785b967
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ fn make_URI(self: *Self, file_path: ?[]const u8) ![]const u8 {
|
|||
if (std.fs.path.isAbsolute(path)) {
|
||||
try buf.writer().print("file://{s}", .{path});
|
||||
} else {
|
||||
try buf.writer().print("file://{s}/{s}", .{ self.name, path });
|
||||
try buf.writer().print("file://{s}{c}{s}", .{ self.name, std.fs.path.sep, path });
|
||||
}
|
||||
} else try buf.writer().print("file://{s}", .{self.name});
|
||||
return buf.toOwnedSlice();
|
||||
|
|
Loading…
Add table
Reference in a new issue