Skip to content

Commit da6892e

Browse files
committed
Fixed doc sync infinite loop bug
1 parent 54bfcf1 commit da6892e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: handler/sourcemapper/ino.go

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ func (s *InoMapper) ApplyTextChange(inoURI lsp.DocumentURI, inoChange lsp.TextDo
192192
addedLines := strings.Count(inoChange.Text, "\n") - 1
193193
for addedLines > 0 {
194194
dirty = dirty || s.addInoLine(cppRange.Start.Line)
195+
addedLines--
195196
}
196197
return
197198
}

0 commit comments

Comments
 (0)