We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e390da5 commit 692d361Copy full SHA for 692d361
plugins/default/src/Ide/Plugin/Retrie.hs
@@ -468,10 +468,10 @@ asEditMap = coerce . HM.fromListWith (++) . concatMap (map (second pure))
468
asTextEdits :: Change -> [(Uri, TextEdit)]
469
asTextEdits NoChange = []
470
asTextEdits (Change reps _imports) =
471
- [ (Uri spanLoc, edit)
+ [ (filePathToUri spanLoc, edit)
472
| Replacement {..} <- nubOrdOn replLocation reps,
473
(RealSrcSpan rspan) <- [replLocation],
474
- let spanLoc = T.pack $ unpackFS $ srcSpanFile rspan,
+ let spanLoc = unpackFS $ srcSpanFile rspan,
475
let edit = TextEdit (realSrcSpanToRange rspan) (T.pack replReplacement)
476
]
477
0 commit comments