Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai 20862a1f7b fix(vcs): show file names in staging diff headings 2026-11-23 04:44:22 +08:00
Charlie.Weiтаcharli117 76d67145f5 test(smoke): give the language-smoke closure tests a 20s timeout (#5240)
The two Language smoke workflow tests compute the repo-wide import closure and crate tree. On a CI runner running the whole suite they took longer than vitest's default 5 s and failed the Frontend job on main.

Co-authored-by: charli117 <[email protected]>
2026-11-23 01:13:43 +08:00
Charlie.Weiтаcharli117 cf4273eeea chore(deps): bump url to 2.5.9 for RUSTSEC-2026-0592 (#5237)
url 2.5.8 overflows the stack in Url::origin() on nested blob: URLs (RUSTSEC-2026-0592), which failed Cargo deny on main. 2.5.9 fixes it; form_urlencoded moves to 1.2.3 with it. The rest of the lockfile stays as on main.

Co-authored-by: charli117 <[email protected]>
2026-11-23 01:13:33 +08:00
6 змінених файлів з 60 додано та 13 видалено

No files matched your search

Створено
+4 -4
Переглянути файл
@@ -2361,9 +2361,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
version = "1.2.2"
version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e"
dependencies = [
"percent-encoding",
]
@@ -10827,9 +10827,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "url"
version = "2.5.8"
version = "2.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a"
dependencies = [
"form_urlencoded",
"idna",
+3
Переглянути файл
@@ -102,6 +102,9 @@ test("edits the staged version and keeps an unsaved draft when the index changes
await expect(headPane).toContainText("val committed = 0");
await expect(indexPane).toContainText("val external = 3");
await expect(localPane).not.toBeEmpty();
const indexHeading = page.getByTitle(`Staged (index) ${path}`, { exact: true });
await expect(indexHeading.getByText("build.gradle.kts", { exact: true })).toBeVisible();
await expect(indexHeading.getByText("Staged (index)", { exact: true })).toBeVisible();
const working = await localPane.textContent();
await page.getByRole("button", { name: "Unstage Change", exact: true }).click();
+2 -2
Переглянути файл
@@ -26,12 +26,12 @@ describe("the Language smoke workflow", () => {
const { files, problems } = await smokeInputs(repo, workflow);
expect(problems).toEqual([]);
expect(describeUnselected(await unselected(workflow, [...files.keys()]), files)).toBe("");
});
}, 20000);
it("runs every language when a crate the smoke runs changes", async () => {
const crates = rustSmokeInputs(repo);
expect(describeUnselected(await unselected(workflow, [...crates.keys()]), crates)).toBe("");
});
}, 20000);
});
const dirs: string[] = [];
+8
Переглянути файл
@@ -187,6 +187,9 @@ export function StagingDiff({
return { ...loaded, index: base, model: compareThreeTexts([head, liveIndex, liveLocal]) };
}, [loaded, local, localText, indexDoc, indexState.base, indexState.text, metadataLoading]);
const snapshot = useRangeSnapshot(data.stagingRange, full);
const headSide = snapshot?.head ?? versions?.left ?? data.left;
const headTitlePath = (headSide.type === "rev" && headSide.path) || data.path;
const indexTitlePath = snapshot?.indexPath ?? indexPath ?? data.path;
const [error, setError] = useState("");
const [busy, setBusy] = useState(false);
const [selected, setSelected] = useState(-1);
@@ -557,6 +560,11 @@ export function StagingDiff({
<ThreePaneDiff
path={data.path}
labels={labels}
titlePaths={[
headTitlePath === indexTitlePath ? undefined : headTitlePath,
indexTitlePath,
data.path === indexTitlePath ? undefined : data.path,
]}
model={snapshot?.model ?? null}
controls={controls}
onEditors={onEditors}
+23
Переглянути файл
@@ -27,6 +27,29 @@
.pane + .pane {
border-left: 1px solid var(--border);
}
.versionLabels {
font-size: var(--fs-ui);
}
.versionLabels > span,
.labelFile {
display: flex;
align-items: center;
gap: var(--space-1);
}
.labelFile {
min-width: 0;
color: var(--fg-strong);
}
.labelFile > svg {
flex: none;
}
.labelFilename {
overflow: hidden;
text-overflow: ellipsis;
}
.versionLabels .versionName {
flex: none;
}
.absent {
color: var(--fg-subtle);
}
+20 -7
Переглянути файл
@@ -4,6 +4,7 @@ import { Decoration, EditorView, gutter } from "@codemirror/view";
import { Chunk } from "@codemirror/merge";
import { diffSideExtensions, embeddedEditorExtensions, remoteChange, type DocumentAttachment } from "@/editor/api";
import { tx } from "@/platform/i18n";
import { Icon, fileIconName } from "@/ui";
import { documentTooltips, firstLineOf, languageFor, viewerBase } from "./cm";
import { diffDocument, exposeHunkButtons, HunkButtons, type HunkButton } from "./diffControls";
import { ideaDiffConfig } from "./diffOptions";
@@ -11,6 +12,7 @@ import { syncMergeScroll } from "./mergeScroll";
import { diffRangeView, setDiffRange } from "./diffRangeView";
import type { DiffRange } from "./stagingRange";
import type { StagedDocument } from "./stagedDocument";
import { baseName } from "./model";
import diffStyles from "./DiffEditor.module.css";
import styles from "./ThreePaneDiff.module.css";
@@ -129,6 +131,7 @@ function present(
export function ThreePaneDiff({
path,
labels,
titlePaths,
model,
controls,
onEditors,
@@ -138,6 +141,7 @@ export function ThreePaneDiff({
}: {
path: string;
labels: ThreePanes<string>;
titlePaths?: ThreePanes<string | undefined>;
model: ReturnType<typeof compareThreeTexts> | null;
controls?: (change: ThreePaneChange) => HunkControl[];
onEditors?: (views: ThreePanes<EditorView> | null) => void;
@@ -222,13 +226,22 @@ export function ThreePaneDiff({
}, [labels, local, index, path, ready]);
return (
<div className={styles.root}>
<div className={styles.labels}>
{labels.map((label, i) => (
<span key={i} title={label}>
{label}
{model?.texts[i] === null && <span className={styles.absent}> {tx("(does not exist)")}</span>}
</span>
))}
<div className={titlePaths ? `${styles.labels} ${styles.versionLabels}` : styles.labels}>
{labels.map((label, i) => {
const file = titlePaths?.[i];
return (
<span key={i} title={file ? `${label} ${file}` : label}>
{file && (
<span className={styles.labelFile}>
<Icon name={fileIconName(file)} size={16} />
<span className={styles.labelFilename}>{baseName(file)}</span>
</span>
)}
<span className={styles.versionName}>{label}</span>
{model?.texts[i] === null && <span className={styles.absent}> {tx("(does not exist)")}</span>}
</span>
);
})}
</div>
{model?.binary ? (
<div className={styles.status}>{tx("Binary content")}</div>