File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ diffTextEdit fText f2Text withDeletions = J.List r
67
67
(J. Position el 0 )
68
68
69
69
diffOperationToTextEdit (Addition fm l) = J. TextEdit range nt
70
- -- fm has a range wrt to the changed file, which starts in the current file at l
71
- -- So the range has to be shifted to start at l
70
+ -- fm has a range wrt to the changed file, which starts in the current file at l + 1
71
+ -- So the range has to be shifted to start at l + 1
72
72
where
73
73
range = J. Range (J. Position (l' - 1 ) 0 )
74
74
(J. Position (l' - 1 ) 0 )
75
- l' = max l sl -- Needed to add at the end of the file
75
+ l' = max (l + 1 ) sl -- Needed to add at the end of the file
76
76
sl = fst $ lrNumbers fm
77
77
nt = T. pack $ unlines $ lrContents fm
78
78
@@ -109,4 +109,4 @@ clientSupportsDocumentChanges caps =
109
109
WorkspaceEditClientCapabilities mDc <- _workspaceEdit wCaps
110
110
mDc
111
111
in
112
- fromMaybe False supports
112
+ fromMaybe False supports
You can’t perform that action at this time.
0 commit comments