The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.
TypeScript code-editorcross-platformdapdatabase-clientdebuggerdesktop-appdeveloper-toolsgithttp-clientideintellijlsprusttauriterminal
import { describe, expect, it } from "vitest";
import { describeActions, settingsWindowParent } from "../window/bridge";
describe("settings window bridge", () => {
it("maps settings window labels to their parent", () => {
expect(settingsWindowParent("settings-main")).toBe("main");
expect(settingsWindowParent("settings-project-2")).toBe("project-2");
expect(settingsWindowParent("main")).toBeNull();
expect(settingsWindowParent(null)).toBeNull();
});
it("describes actions without their handlers", () => {
const [info] = describeActions([{ id: "a.b", title: "B", when: "editorFocus", run: () => {} }]);
expect(info).toEqual({ id: "a.b", title: "B", when: "editorFocus" });
expect(JSON.parse(JSON.stringify(info))).toEqual(info);
});
});