fix ast-check with single error (#865)
This commit is contained in:
parent
94ec3a0a86
commit
d86d05d969
@ -453,6 +453,12 @@ fn getAstCheckDiagnostics(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (last_diagnostic) |*diagnostic| {
|
||||||
|
diagnostic.relatedInformation = try last_related_diagnostics.toOwnedSlice(allocator);
|
||||||
|
try diagnostics.append(allocator, diagnostic.*);
|
||||||
|
last_diagnostic = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// caller owns returned memory.
|
/// caller owns returned memory.
|
||||||
|
Loading…
Reference in New Issue
Block a user