Add Zed editor support across open-in flow

- add `zed` to shared editor contracts and Open In picker
- add Zed icon and wire launch resolution tests on macOS
- wrap branch optimistic updates in `startTransition` to avoid sync warnings
This commit is contained in:
Julius Marminge committed 2026-03-02 16:43:23 -08:00
1 parent 7e0e835491
commit 10eab80c02
5 files changed
+60 -8

No files matched your search

+18
View File
@@ -33,6 +33,15 @@ describe("resolveEditorLaunch", () => {
command: "code",
args: ["/tmp/workspace"],
});
const zedLaunch = yield* resolveEditorLaunch(
{ cwd: "/tmp/workspace", editor: "zed" },
"darwin",
);
assert.deepEqual(zedLaunch, {
command: "zed",
args: ["/tmp/workspace"],
});
}),
);
@@ -64,6 +73,15 @@ describe("resolveEditorLaunch", () => {
command: "code",
args: ["--goto", "/tmp/workspace/src/open.ts:71:5"],
});
const zedLineAndColumn = yield* resolveEditorLaunch(
{ cwd: "/tmp/workspace/src/open.ts:71:5", editor: "zed" },
"darwin",
);
assert.deepEqual(zedLineAndColumn, {
command: "zed",
args: ["/tmp/workspace/src/open.ts:71:5"],
});
}),
);