Skip to content

Commit 7aa21de

Browse files
committed
fix: Revert "add leading slash to Uri.to_path on windows"
This reverts commit 6d11e1a.
1 parent 46e23e7 commit 7aa21de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp/src/uri0.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let to_path t =
4646
|> String.replace_all ~pattern:"%3D" ~with_:"="
4747
|> String.replace_all ~pattern:"%3F" ~with_:"?"
4848
in
49-
Filename.concat "/" path
49+
if Sys.win32 then path else Filename.concat "/" path
5050

5151
let of_path (path : string) =
5252
let path = Uri_lexer.escape_path path in

0 commit comments

Comments
 (0)