We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10355fa commit fdd4a7fCopy full SHA for fdd4a7f
handler/sourcemapper/ino.go
@@ -180,6 +180,10 @@ func (s *InoMapper) ApplyTextChange(inoURI lsp.DocumentURI, inoChange lsp.TextDo
180
s.CppText.Text = newText
181
s.CppText.Version++
182
183
+ if _, is := s.inoPreprocessed[s.toIno[cppRange.Start.Line]]; is {
184
+ dirty = true
185
+ }
186
+
187
// Update line references
188
for deletedLines > 0 {
189
dirty = dirty || s.deleteCppLine(cppRange.Start.Line)
@@ -189,9 +193,6 @@ func (s *InoMapper) ApplyTextChange(inoURI lsp.DocumentURI, inoChange lsp.TextDo
193
for addedLines > 0 {
190
194
dirty = dirty || s.addInoLine(cppRange.Start.Line)
191
195
}
192
- if _, is := s.cppPreprocessed[cppRange.Start.Line]; is {
- dirty = true
- }
196
return
197
198
0 commit comments