Skip to content

Commit 692d361

Browse files
committed
Fix uris in workspace edit
1 parent e390da5 commit 692d361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/default/src/Ide/Plugin/Retrie.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ asEditMap = coerce . HM.fromListWith (++) . concatMap (map (second pure))
468468
asTextEdits :: Change -> [(Uri, TextEdit)]
469469
asTextEdits NoChange = []
470470
asTextEdits (Change reps _imports) =
471-
[ (Uri spanLoc, edit)
471+
[ (filePathToUri spanLoc, edit)
472472
| Replacement {..} <- nubOrdOn replLocation reps,
473473
(RealSrcSpan rspan) <- [replLocation],
474-
let spanLoc = T.pack $ unpackFS $ srcSpanFile rspan,
474+
let spanLoc = unpackFS $ srcSpanFile rspan,
475475
let edit = TextEdit (realSrcSpanToRange rspan) (T.pack replReplacement)
476476
]
477477

0 commit comments

Comments
 (0)