mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Fix issue where the offset of diagnostic fixits is not updated after an edit request.
rdar://23919223
This commit is contained in:
@@ -658,7 +658,7 @@ adjustDiagnosticFixits(SmallVectorImpl<DiagnosticEntryInfo::Fixit> &Fixits,
|
||||
// If it intersects with the remove range, ignore the whole diagnostic.
|
||||
if (!(FixitEnd < ByteOffset || FixitBegin > RemoveEnd))
|
||||
return true; // Ignore.
|
||||
if (FixitBegin > FixitEnd)
|
||||
if (FixitBegin > RemoveEnd)
|
||||
Fixit.Offset += Delta;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user