File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def MakeEditLinkProps.ofReplaceRange' (doc : Server.DocumentMeta) (range : Lsp.R
4343 if newSelection?.isSome then
4444 { edit, newSelection? }
4545 else
46- let endPos := range.start.advance newText.toSubstring
46+ let endPos := range.start.advance newText.toRawSubstring
4747 { edit, newSelection? := some { start := endPos, «end » := endPos } }
4848
4949/-- Replace `range` with `newText`.
@@ -54,8 +54,8 @@ def MakeEditLinkProps.ofReplaceRange (doc : Server.DocumentMeta) (range : Lsp.Ra
5454 (newText : String) (newSelection? : Option (String.Pos.Raw × String.Pos.Raw) := none) :
5555 MakeEditLinkProps :=
5656 ofReplaceRange' doc range newText (newSelection?.map fun (s, e) =>
57- let ps := range.start.advance (newText.toSubstring .extract 0 s)
58- let pe := ps.advance (newText.toSubstring .extract s e)
57+ let ps := range.start.advance (newText.toRawSubstring .extract 0 s)
58+ let pe := ps.advance (newText.toRawSubstring .extract s e)
5959 { start := ps, «end » := pe })
6060
6161/-- A link that, when clicked, makes the specified edit
You can’t perform that action at this time.
0 commit comments