There was an error while loading. Please reload this page.
Uri.toPath
1 parent 6dfbffc commit 2f73b51Copy full SHA for 2f73b51
1 file changed
analysis/src/Commands.ml
@@ -193,7 +193,7 @@ let rename ~full ~pos ~newName ~debug =
193
let fileRenames =
194
referencesToToplevelModules
195
|> List.map (fun uri ->
196
- let path = Uri.toString uri in
+ let path = Uri.toPath uri in
197
let dir =
198
match Filename.dirname path with
199
| "." -> ""
@@ -203,7 +203,9 @@ let rename ~full ~pos ~newName ~debug =
203
Filename.concat dir (newName ^ Filename.extension path)
204
in
205
`RenameFile
206
- (Lsp.Types.RenameFile.create ~newUri:(newPath |> Uri.fromPath)
+ (Lsp.Types.RenameFile.create
207
+ ~newUri:
208
+ (newPath |> Uri.fromPath |> Uri.toString |> Uri.fromPath)
209
~oldUri:(uri |> Uri.toString |> Uri.fromString)
210
()))
211
0 commit comments