Update project licensing (#3944)

This commit is contained in:
Mohamed Boudra
2026-08-27 14:25:31 +02:00
committed by GitHub
parent cda441d3b2
commit a8734a9724
71 changed files with 1940 additions and 1754 deletions
@@ -22,6 +22,24 @@ describe("native diff body-coordinate hit testing", () => {
}
});
it("keeps a later expanded file interactive after an earlier body grows", () => {
const model = build("unified");
const target = model.rows.find(
(row) => row.kind === "line" && row.fileIndex === 1 && row.cells[0]?.type === "add",
)!;
const file = model.files[1]!;
const hit = hitTestDiffBodyPoint({
model,
file,
locationX: file.gutterWidth + 18,
locationY: target.top - file.bodyTop + 2,
horizontalOffset: 0,
});
expect(hit?.kind === "cell" ? hit.position.fileIndex : null).toBe(1);
});
it("applies the touched file's retained horizontal offset", () => {
const model = build("unified");
const row = model.rows.find(